diff options
| author | ilotterytea <iltsu@alright.party> | 2025-06-06 23:34:03 +0400 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-06-06 23:34:03 +0400 |
| commit | aed48748a8b20639c966c5e57d59730eea00c6db (patch) | |
| tree | 3d79708e8d61c2ee7d5b5d7263e79ec015291420 /public | |
| parent | 844a3792c725a115e1c5db6478f035f9ebc21b7f (diff) | |
fix: check if QUERY_STRING exists
Diffstat (limited to 'public')
| -rw-r--r-- | public/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index 3b086a0..4176415 100644 --- a/public/index.php +++ b/public/index.php @@ -16,7 +16,7 @@ $file_id = null; if (strlen(substr($_SERVER['PHP_SELF'], strlen('/index.php'))) > 0) { $file_id = basename($_SERVER['PHP_SELF']); -} else if (!empty(trim($_SERVER['QUERY_STRING']))) { +} else if (isset($_SERVER['QUERY_STRING']) && !empty(trim($_SERVER['QUERY_STRING']))) { $file_id = basename($_SERVER['QUERY_STRING']); } |
