aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-09-14 23:41:15 +0200
committerTristan Darricau <github@nicofuma.fr>2014-09-14 23:41:15 +0200
commitb9e7ed004c5830ce2a965702e6c8dc570291cf9b (patch)
tree79f0ccb53ba2cf1210c9e4f1f5db206811e69a37 /phpBB/phpbb/controller
parent[ticket/13034] Fix unit tests (diff)
downloadphpbb-b9e7ed004c5830ce2a965702e6c8dc570291cf9b.tar.gz
phpbb-b9e7ed004c5830ce2a965702e6c8dc570291cf9b.tar.bz2
phpbb-b9e7ed004c5830ce2a965702e6c8dc570291cf9b.zip
[ticket/13034] Use utf8_basename
PHPBB3-13034
Diffstat (limited to 'phpBB/phpbb/controller')
-rw-r--r--phpBB/phpbb/controller/helper.php2
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);