diff options
author | Mate Bartus <mate.bartus@gmail.com> | 2015-07-24 00:04:40 +0200 |
---|---|---|
committer | Mate Bartus <mate.bartus@gmail.com> | 2015-07-24 00:04:40 +0200 |
commit | cb593c0e04fc9f3318443fe42b596d27498729c3 (patch) | |
tree | eada04cac4874ecdcb7dc43f2b6b8200c54a9903 /phpBB | |
parent | 27d2d58e0529172de7d0403292bc10842a45ef98 (diff) | |
download | forums-cb593c0e04fc9f3318443fe42b596d27498729c3.tar forums-cb593c0e04fc9f3318443fe42b596d27498729c3.tar.gz forums-cb593c0e04fc9f3318443fe42b596d27498729c3.tar.bz2 forums-cb593c0e04fc9f3318443fe42b596d27498729c3.tar.xz forums-cb593c0e04fc9f3318443fe42b596d27498729c3.zip |
[ticket/13740] Filter basic directory change attempts in lang change
PHPBB3-13740
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/phpbb/install/controller/helper.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/install/controller/helper.php b/phpBB/phpbb/install/controller/helper.php index f3400e6ef0..8530a0defe 100644 --- a/phpBB/phpbb/install/controller/helper.php +++ b/phpBB/phpbb/install/controller/helper.php @@ -191,7 +191,8 @@ class helper $this->language_cookie = $lang; } - $lang = (!empty($lang)) ? $lang : null; + $lang = (!empty($lang) && strpos($lang, '/')) ? $lang : null; + $this->render_language_select($lang); if ($lang !== null) |