mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-30 04:38:21 +02:00
[ticket/13034] Use utf8_basename
PHPBB3-13034
This commit is contained in:
parent
4f44e73b21
commit
b9e7ed004c
@ -124,7 +124,7 @@ class helper
|
||||
$context->fromRequest($this->symfony_request);
|
||||
|
||||
$script_name = $this->symfony_request->getScriptName();
|
||||
$page_name = substr($script_name, -1, 1) == '/' ? '' : basename($script_name);
|
||||
$page_name = substr($script_name, -1, 1) == '/' ? '' : utf8_basename($script_name);
|
||||
$context->setBaseUrl(str_replace('/' . $page_name, empty($this->config['enable_mod_rewrite']) ? '/app.' . $this->php_ext : '', $context->getBaseUrl()));
|
||||
|
||||
$url_generator = new UrlGenerator($this->route_collection, $context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user