1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

[ticket/security/279] Use utf8_basename for smilies pak file check

SECURITY-279
This commit is contained in:
Derky
2023-09-21 15:48:01 +02:00
committed by Marc Alexander
parent c4f42c1573
commit 266376af2e

View File

@@ -550,7 +550,7 @@ class acp_icons
trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}
if (!($pak_ary = @file($phpbb_root_path . $img_path . '/' . basename($pak))))
if (!($pak_ary = @file($phpbb_root_path . $img_path . '/' . utf8_basename($pak))))
{
trigger_error($user->lang['PAK_FILE_NOT_READABLE'] . adm_back_link($this->u_action), E_USER_WARNING);
}