1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-13 20:28:44 +01:00

[ticket/13942] Check if path to language file contains language path

PHPBB3-13942
This commit is contained in:
Marc Alexander 2015-06-13 16:59:13 +02:00
parent a50e2c0c47
commit 714533d12e

View File

@ -637,7 +637,7 @@ class user extends \phpbb\session
$lang_path = $this->lang_path;
}
if (strpos($phpbb_root_path . $filename, $lang_path . $this->lang_name . '/') === 0)
if (strpos($phpbb_root_path . $filename, $lang_path) === 0)
{
$language_filename = $phpbb_root_path . $filename;
}