diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-09-14 23:41:15 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-09-14 23:41:15 +0200 |
commit | b9e7ed004c5830ce2a965702e6c8dc570291cf9b (patch) | |
tree | 79f0ccb53ba2cf1210c9e4f1f5db206811e69a37 /phpBB | |
parent | 4f44e73b21946c3a7f4f2bf2a7a693129570aaad (diff) | |
download | forums-b9e7ed004c5830ce2a965702e6c8dc570291cf9b.tar forums-b9e7ed004c5830ce2a965702e6c8dc570291cf9b.tar.gz forums-b9e7ed004c5830ce2a965702e6c8dc570291cf9b.tar.bz2 forums-b9e7ed004c5830ce2a965702e6c8dc570291cf9b.tar.xz forums-b9e7ed004c5830ce2a965702e6c8dc570291cf9b.zip |
[ticket/13034] Use utf8_basename
PHPBB3-13034
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/phpbb/controller/helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/controller/helper.php b/phpBB/phpbb/controller/helper.php index 931a489535..6ad6dd1e24 100644 --- a/phpBB/phpbb/controller/helper.php +++ b/phpBB/phpbb/controller/helper.php @@ -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); |