diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2014-04-14 12:40:47 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2014-04-14 12:40:47 +0200 |
| commit | b487da7c053a129c8e06056e4659ba7928f63c40 (patch) | |
| tree | e5a851e00fb9a1c971a42a0d9ee6ed4674a2c131 /phpBB/phpbb/path_helper.php | |
| parent | aebf2cc5cd5b76b3cc42b819dc446afb7cdbbad3 (diff) | |
| parent | 5dc3651290b0d6cad28534e6f88cc166f2e0a5b8 (diff) | |
| download | forums-b487da7c053a129c8e06056e4659ba7928f63c40.tar forums-b487da7c053a129c8e06056e4659ba7928f63c40.tar.gz forums-b487da7c053a129c8e06056e4659ba7928f63c40.tar.bz2 forums-b487da7c053a129c8e06056e4659ba7928f63c40.tar.xz forums-b487da7c053a129c8e06056e4659ba7928f63c40.zip | |
Merge remote-tracking branch 'marc/ticket/12004' into develop-ascraeus
* marc/ticket/12004:
[ticket/12004] Support empty routes to app.php/ in path_helper
Diffstat (limited to 'phpBB/phpbb/path_helper.php')
| -rw-r--r-- | phpBB/phpbb/path_helper.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/phpbb/path_helper.php b/phpBB/phpbb/path_helper.php index a8e12c4063..fefef39c51 100644 --- a/phpBB/phpbb/path_helper.php +++ b/phpBB/phpbb/path_helper.php @@ -149,6 +149,16 @@ class path_helper $script_name = $this->symfony_request->getScriptName(); /* + * If the path info is empty but we're using app.php, then we + * might be using an empty route like app.php/ which is + * supported by symfony's routing + */ + if ($path_info === '/' && preg_match('/app\.' . $this->php_ext . '\/$/', $request_uri)) + { + return $this->web_root_path = $this->phpbb_root_path . '../'; + } + + /* * If the path info is empty (single /), then we're not using * a route like app.php/foo/bar */ |
