Commit 3fe59fff7e5a81e8e5f80bb5c2511947e271f579

Authored by Geoffrey PREUD'HOMME
1 parent 0e9ad5ad

Quick sanitization

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
@@ -8,6 +8,7 @@ $path = $parsedUrl['path']; @@ -8,6 +8,7 @@ $path = $parsedUrl['path'];
8 $explodedUrl = explode('/', $path); 8 $explodedUrl = explode('/', $path);
9 $page = end($explodedUrl); 9 $page = end($explodedUrl);
10 $page = str_replace('.php', '', $page); 10 $page = str_replace('.php', '', $page);
  11 +$page = str_replace('.', '', $page); // TODO Better sanitization
11 12
12 if ($page == '') { 13 if ($page == '') {
13 $page = 'home'; 14 $page = 'home';