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

Commit

Permalink
Correctly filter empty elements in String::resolveFlaggedUrl()
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Nov 12, 2014
1 parent ff11561 commit d0dc2dc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions system/modules/core/library/Contao/String.php
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,11 @@ public static function resolveFlaggedUrl(&$url)

for ($i=1; $i<count($chunks); $i++)
{
if (empty($chunks[$i]))
{
continue;
}

switch ($chunks[$i])
{
case 'static':
Expand All @@ -670,10 +675,6 @@ public static function resolveFlaggedUrl(&$url)
$options->async = true;
break;

case empty($chunks[$i]):
// Ignore
break;

case is_numeric($chunks[$i]):
$options->mtime = $chunks[$i];
break;
Expand Down

0 comments on commit d0dc2dc

Please sign in to comment.