diff options
author | Bot <bot@myigel.name> | 2017-01-21 19:47:44 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-01-21 20:12:48 +0100 |
commit | 740026a9de6cba73c4e77aba78950d0a791b6b62 (patch) | |
tree | 187eb8fc8bccf731c095c00d6f8108ba0f4b8b06 /public/index.php | |
parent | 915ce28feeb9104bf7854ccbd80caebb5dce4aaa (diff) |
Replaced [0-9] with \d
Diffstat (limited to 'public/index.php')
-rw-r--r-- | public/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index 92a71c6d..12d6f744 100644 --- a/public/index.php +++ b/public/index.php @@ -30,7 +30,7 @@ if (!isset($_REQUEST['p'])) { if ( isset($_REQUEST['p']) - && preg_match('/^[a-z0-9_]*$/i', $_REQUEST['p']) + && preg_match('/^\w*$/i', $_REQUEST['p']) && ( in_array($_REQUEST['p'], $free_pages) || (isset($privileges) && in_array($_REQUEST['p'], $privileges)) |