File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2336,7 +2336,7 @@ public function executeCommand() {
2336
2336
// 'secret'=>'someVeryLongPassPhraseChangeMe',
2337
2337
// ));
2338
2338
// if ($auth->executeCommand()) exit(0);
2339
- // if (empty($_SESSION['user']) || $_GET['csrf']!=$_SESSION['csrf'] ) {
2339
+ // if (empty($_SESSION['user']) || !$auth->hasValidCsrfToken() ) {
2340
2340
// header('HTTP/1.0 401 Unauthorized');
2341
2341
// exit(0);
2342
2342
// }
@@ -2347,7 +2347,7 @@ public function executeCommand() {
2347
2347
// 'authenticator'=>function($user,$pass){ $_SESSION['user']=($user=='admin' && $pass=='admin'); }
2348
2348
// ));
2349
2349
// if ($auth->executeCommand()) exit(0);
2350
- // if (empty($_SESSION['user']) || $_GET['csrf']!=$_SESSION['csrf'] ) {
2350
+ // if (empty($_SESSION['user']) || !$auth->hasValidCsrfToken() ) {
2351
2351
// header('HTTP/1.0 401 Unauthorized');
2352
2352
// exit(0);
2353
2353
// }
You can’t perform that action at this time.
0 commit comments