Streamline hardening helpers and expand coverage
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
RENDER(Request& context)
|
||||
{
|
||||
context.header["X-UCE-Security-Test"] = "safe\r\nX-UCE-Injected: nope";
|
||||
context.header["Bad\r\nX-UCE-Injected-Name"] = "nope";
|
||||
context.set_cookies.push_back("Set-Cookie: raw=1\r\nX-UCE-Cookie-Injected: nope");
|
||||
redirect("/tests/index.uce\r\nX-UCE-Redirect-Injected: nope", 299);
|
||||
context.set_status(299, "OK\r\nX-UCE-Status-Injected: nope");
|
||||
print("security header sanitizer test");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user