From 2d0860e42fb9afa679626a9a7eb137ea103c580d Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Wed, 26 Oct 2016 17:16:17 +0200 Subject: [PATCH] Undefined variable --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 6a01bc4..fffd351 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ require_once __DIR__.'/vendor/autoload.php'; use Alltube\Controller\FrontController; -if (strpos($_SERVER['REQUEST_URI'], '/index.php') !== false) { +if (isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], '/index.php') !== false) { header('Location: '.str_ireplace('/index.php', '/', $_SERVER['REQUEST_URI'])); die; }