File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -330,12 +330,15 @@ defmodule Plug.DebuggerTest do
330
330
|> put_req_header ( "accept" , "text/html" )
331
331
|> Plug.Parsers . call ( Plug.Parsers . init ( parsers: [ :urlencoded ] ) )
332
332
|> 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 )
334
334
335
335
assert conn . resp_body =~ "x=<script>alert(document.domain)</script>"
336
336
assert conn . resp_body =~ "<script>xss-header</script>"
337
337
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"
339
342
end
340
343
341
344
test "uses PLUG_EDITOR with __FILE__" do
You can’t perform that action at this time.
0 commit comments