Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit d0dc2dc

Browse files
committed
Correctly filter empty elements in String::resolveFlaggedUrl()
1 parent ff11561 commit d0dc2dc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

system/modules/core/library/Contao/String.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,11 @@ public static function resolveFlaggedUrl(&$url)
660660

661661
for ($i=1; $i<count($chunks); $i++)
662662
{
663+
if (empty($chunks[$i]))
664+
{
665+
continue;
666+
}
667+
663668
switch ($chunks[$i])
664669
{
665670
case 'static':
@@ -670,10 +675,6 @@ public static function resolveFlaggedUrl(&$url)
670675
$options->async = true;
671676
break;
672677

673-
case empty($chunks[$i]):
674-
// Ignore
675-
break;
676-
677678
case is_numeric($chunks[$i]):
678679
$options->mtime = $chunks[$i];
679680
break;

0 commit comments

Comments
 (0)