Merge branch 'ent-12121-cve-2023-41814-xss-en-file-manager' into 'develop'

Ent 12121 cve 2023 41814 xss en file manager

See merge request artica/pandorafms!6499
This commit is contained in:
Rafael Ameijeiras 2023-11-27 10:25:54 +00:00
commit cd8652f9e6
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,8 @@ if (isset($config['filemanager']['message']) === true) {
$fallback_directory = 'images'; $fallback_directory = 'images';
// Get directory. // Get directory.
$directory = (string) get_parameter('directory'); $directory = (string) get_parameter('directory');
$directory = str_replace('<', '', $text);
$directory = str_replace('>', '', $text);
if (empty($directory) === true) { if (empty($directory) === true) {
$directory = $fallback_directory; $directory = $fallback_directory;
} else { } else {