Commit 847ea8538c423e99b6ebc7b52c97a6e8307ef38c

Authored by Geoffrey PREUD'HOMME
1 parent 00ca549f

Ensure no .php have been added

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