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