Revision 3e360ca7
Added by Chris Buechler over 14 years ago
usr/local/www/csrf/csrf-magic.php | ||
---|---|---|
244 | 244 |
*/ |
245 | 245 |
function csrf_callback($tokens) { |
246 | 246 |
header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden'); |
247 |
echo "<html><head><title>CSRF check failed</title></head><body>CSRF check failed. Please enable cookies.<br />Debug: ".$tokens."</body></html>
|
|
247 |
echo "<html><head><title>CSRF check failed</title></head><body>CSRF check failed. Either your session has expired, this page has been inactive too long, or you need to enable cookies.<br />Debug: ".$tokens."</body></html>
|
|
248 | 248 |
"; |
249 | 249 |
} |
250 | 250 |
|
Also available in: Unified diff
clarify CSRF failure message