From 765cdb68dbfe59a14da1005d7d1366555e9c6592 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 19 Jun 2013 21:32:24 +0200 Subject: [PATCH] Show an error message when the CSRF check fails. --- public_html/rewrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/rewrite.php b/public_html/rewrite.php index b6c65d5..7959860 100644 --- a/public_html/rewrite.php +++ b/public_html/rewrite.php @@ -22,7 +22,7 @@ if(strtolower($_SERVER["REQUEST_METHOD"]) == "post") } catch (CsrfException $e) { - die(); + die("Invalid CSRF token. Perhaps your session has expired? Click here to log in again."); } }