diff --git a/libraries/src/Form/Rule/FilePathRule.php b/libraries/src/Form/Rule/FilePathRule.php index 964e68d5b0965..0e779506d6cae 100644 --- a/libraries/src/Form/Rule/FilePathRule.php +++ b/libraries/src/Form/Rule/FilePathRule.php @@ -54,7 +54,7 @@ public function test(\SimpleXMLElement $element, $value, $group = null, Registry try { - $path = Path::check($value); + Path::check($value); } catch (\Exception $e) { @@ -62,6 +62,8 @@ public function test(\SimpleXMLElement $element, $value, $group = null, Registry return false; } - return $value === $path; + // When there are no exception this rule should pass. + // See: https://github.com/joomla/joomla-cms/issues/30500#issuecomment-683290162 + return true; } }