1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-08 08:35:31 +02:00

[ticket/13740] Filter basic directory change attempts in lang change

PHPBB3-13740
This commit is contained in:
Mate Bartus 2015-07-24 00:04:40 +02:00
parent 27d2d58e05
commit cb593c0e04

View File

@ -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)