Core/Endpoints
* don't use raw input to recreate subcategories for filter urls and external links * if a page does not expect categories it will now error out if it is called with parameters * fixed infite redirect loop that could occur if the pageName was an invalid string * added lost filter string for external page call to NPCs Page
This commit is contained in:
parent
23c5c71f4a
commit
715c1534eb
91 changed files with 288 additions and 261 deletions
|
|
@ -23,8 +23,9 @@ foreach ($query as $page => $param)
|
|||
// fix page calls - pages like search use the page call directly and expect it as lower case
|
||||
if (preg_match('/[A-Z]/', $page))
|
||||
{
|
||||
$url = str_replace('?'.$page.'=', '?'.Util::lower($page).'=', $_SERVER['REQUEST_URI']);
|
||||
header('Location: '.$url, true, 302);
|
||||
$url = explode('=', $_SERVER['REQUEST_URI'], 2);
|
||||
$page = Util::lower(array_shift($url)).($url ? '=' . $url[0] : '');
|
||||
header('Location: '.$page, true, 302);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue