Browse Source

Fix the underscore bug #1

Aaron Mueller 7 years ago
parent
commit
9567ea0c8f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      index.php

+ 1
- 1
index.php View File

@@ -1,7 +1,7 @@
1 1
 <?php
2 2
 
3 3
 function active_page() {
4
-    if (!empty($_GET['page'])) return trim(preg_replace('/[^a-zA-Z0-9\/]+/', '', $_GET['page']));
4
+    if (!empty($_GET['page'])) return trim(preg_replace('/[^a-zA-Z0-9\/-_]+/', '', $_GET['page']));
5 5
     return 'mainpage';
6 6
 }
7 7
 

Loading…
Cancel
Save