Fix PHP warning
This commit is contained in:
parent
3f5cc0129c
commit
2d34f9f262
3
cache/handle_404.php
vendored
3
cache/handle_404.php
vendored
@ -8,7 +8,8 @@
|
||||
|
||||
require_once __DIR__ . "/../required.php";
|
||||
|
||||
$fileparts = explode(".", end(explode("/", $_GET['file'])));
|
||||
$urlparts = explode("/", $_GET['file']);
|
||||
$fileparts = explode(".", end($urlparts));
|
||||
|
||||
if (count($fileparts) != 3 || !preg_match("/[0-9]+/", $fileparts[1]) || $fileparts[2] != "jpg") {
|
||||
http_response_code(403);
|
||||
|
Loading…
x
Reference in New Issue
Block a user