We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a470daf commit 8133adeCopy full SHA for 8133ade
lib/headers.php
@@ -7,7 +7,7 @@
7
$_SESSION["csrf"] = md5(uniqid(mt_rand(), true));
8
}
9
10
-if (($_GET || $_POST) && $_REQUEST["csrf"] !== $_SESSION["csrf"]) {
+if (($_GET || $_POST) && (!isset($_REQUEST["csrf"]) || $_REQUEST["csrf"] !== $_SESSION["csrf"])) {
11
die("Bad CSRF token. Please report the error info at https://github.com/mattpass/ICEcoder so it can be fixed.<br><br>
12
CSRF issue:<br>
13
REQUEST: ".$_REQUEST["csrf"]."<br>
0 commit comments