Skip to content

Commit

Permalink
Update sef.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Demmer committed Apr 14, 2017
1 parent c4cac2d commit 732d33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/system/sef/sef.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function onAfterRender()
$regex = '#\s+srcset="([^"]+)"#m';
$buffer = preg_replace_callback($regex, function ($match) use ($base, $protocols) {
$data = array();
foreach (explode(",", $match[1]) as $url)
foreach (explode(",", $match[1]) as $url)
{
$data[] = preg_replace('#(?!/|' . $protocols . '|\#|\')([^\s]+)\s+(.*)#', $base . '$1 $2', $url);
}
Expand Down

0 comments on commit 732d33d

Please sign in to comment.