diff --git a/libraries/joomla/filesystem/folder.php b/libraries/joomla/filesystem/folder.php index 81ddc8e5a9ef9..76db95ce57a0a 100644 --- a/libraries/joomla/filesystem/folder.php +++ b/libraries/joomla/filesystem/folder.php @@ -247,7 +247,7 @@ public static function create($path = '', $mode = 0755) { $test = $pathObject->clean($test); - if (strpos($path, $test) === 0) + if (strpos($path, $test) === 0 || strpos($path, realpath($test)) === 0) { $inBaseDir = true; break;