From b9e7ed004c5830ce2a965702e6c8dc570291cf9b Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Sun, 14 Sep 2014 23:41:15 +0200 Subject: [PATCH] [ticket/13034] Use utf8_basename PHPBB3-13034 --- phpBB/phpbb/controller/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);