From 3fe59fff7e5a81e8e5f80bb5c2511947e271f579 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Mon, 2 Mar 2015 17:04:45 +0100 Subject: [PATCH] Quick sanitization --- index.php | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/index.php b/index.php index f3266db..e40ff5e 100755 --- a/index.php +++ b/index.php @@ -8,6 +8,7 @@ $path = $parsedUrl['path']; $explodedUrl = explode('/', $path); $page = end($explodedUrl); $page = str_replace('.php', '', $page); +$page = str_replace('.', '', $page); // TODO Better sanitization if ($page == '') { $page = 'home'; -- libgit2 0.21.2