[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
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

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);
}