File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -330,12 +330,15 @@ defmodule Plug.DebuggerTest do
330330 |> put_req_header ( "accept" , "text/html" )
331331 |> Plug.Parsers . call ( Plug.Parsers . init ( parsers: [ :urlencoded ] ) )
332332 |> put_req_header ( "<script>xss-header</script>" , "<script>xss-val</script>" )
333- |> render ( [ ] , fn -> raise "<script>oops </script>" end )
333+ |> render ( [ ] , fn -> raise "<script>xss-error </script>" end )
334334
335335 assert conn . resp_body =~ "x=<script>alert(document.domain)</script>"
336336 assert conn . resp_body =~ "<script>xss-header</script>"
337337 assert conn . resp_body =~ "<script>xss-val</script>"
338- assert conn . resp_body =~ "<script>oops</script>"
338+ assert conn . resp_body =~ "<script>xss-error</script>"
339+
340+ refute conn . resp_body =~ "<script>alert"
341+ refute conn . resp_body =~ "<script>xss"
339342 end
340343
341344 test "uses PLUG_EDITOR with __FILE__" do
You can’t perform that action at this time.
0 commit comments