summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-06-21 16:41:39 -0400
committerczaks <marcin@6irc.net>2013-06-21 16:41:39 -0400
commit24a520485df30a85a68d02938256c4a8ac7af8e8 (patch)
tree8a93e590b715624cfa7e3812a413061fc252c1ab /mod.php
parentc073967600124568609d10a400039f017ad9dcf8 (diff)
parent9b0c31daa68c7ab96bc25e09b70ffea77ba23590 (diff)
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts: templates/page.html
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index dc666996..8d6db402 100644
--- a/mod.php
+++ b/mod.php
@@ -105,7 +105,7 @@ $new_pages = array();
foreach ($pages as $key => $callback) {
if (preg_match('/^secure /', $callback))
$key .= '(/(?P<token>[a-f0-9]{8}))?';
- $new_pages[@$key[0] == '!' ? $key : "!^$key$!"] = $callback;
+ $new_pages[@$key[0] == '!' ? $key : '!^' . $key . '(?:&[^&=]+=[^&]*)*$!'] = $callback;
}
$pages = $new_pages;