forked from leftypol/leftypol
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts: templates/page.html
This commit is contained in:
commit
24a520485d
13 changed files with 126 additions and 55 deletions
2
mod.php
2
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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue