blob: 580193a1ce1a03cd97ef3387de499e34d4bfc4ac [file] [log] [blame]
<?php
header("Expires: Thu, 01 Dec 2003 16:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
if ($_GET["csp"]) {
$contentSecurityPolicy = $_GET["csp"];
// If the magic quotes option is enabled, the CSP could be escaped and
// the test would fail.
if (get_magic_quotes_gpc())
$contentSecurityPolicy = stripslashes($contentSecurityPolicy);
header("Content-Security-Policy: " . $contentSecurityPolicy);
}
?>