From b6be3226c517981be4f80fb0078a587002426fa4 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sun, 3 Jun 2018 19:50:05 +0200 Subject: [PATCH] * nothing important .. (fixed some notices from IDE) --- index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index ee449a3c..ffbf4122 100644 --- a/index.php +++ b/index.php @@ -51,8 +51,9 @@ if(preg_match("/^[A-Za-z0-9-_%\'+]+\.png$/i", $uri)) { include TOOLS . 'signature/index.php'; exit(); } -else if(preg_match("/^(.*)\.(gif|jpg|png|jpeg|tiff|bmp|css|js|less|map|html|php|zip|rar|gz|ttf|woff|ico)$/i", $_SERVER['REQUEST_URI'])) { - header("HTTP/1.0 404 Not Found"); + +if(preg_match("/^(.*)\.(gif|jpg|png|jpeg|tiff|bmp|css|js|less|map|html|php|zip|rar|gz|ttf|woff|ico)$/i", $_SERVER['REQUEST_URI'])) { + header('HTTP/1.0 404 Not Found'); exit; } @@ -126,6 +127,7 @@ else { foreach($rules as $rule => $redirect) { if (preg_match($rule, $uri)) { $tmp = explode('/', $uri); + /* @var $redirect array */ foreach($redirect as $key => $value) { if(strpos($value, '$') !== false) {