Browse Source

Fix the underscore bug #1

master
Aaron Mueller 8 years ago
parent
commit
9567ea0c8f
  1. 2
      index.php

2
index.php

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