We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2109fa commit 502a74dCopy full SHA for 502a74d
1 file changed
api/index.php
@@ -14,7 +14,7 @@
14
if (isset($_GET['apikey'])) {
15
$matchkey = 0;
16
foreach($cfg['stats_api_keys'] as $apikey => $desc) {
17
- if ($apikey == $_GET['apikey']) $matchkey = 1;
+ if (hash_equals($apikey, $_GET['apikey'])) $matchkey = 1;
18
}
19
if ($matchkey == 0) {
20
$json = array(
@@ -494,4 +494,4 @@
494
495
496
echo json_encode($json);
497
-?>
+?>
0 commit comments