Skip to content

Commit

Permalink
[bug][33814] Plugin SEF do not respect the custom attributes. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik authored and Thomas Hunziker committed Jul 27, 2014
1 parent 52c4187 commit 2eecc38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/system/sef/sef.php
Expand Up @@ -78,8 +78,8 @@ public function onAfterRender()

// Check for all unknown protocals (a protocol must contain at least one alpahnumeric character followed by a ":").
$protocols = '[a-zA-Z0-9\-]+:';
$regex = '#(src|href|poster)="(?!/|' . $protocols . '|\#|\')([^"]*)"#m';
$buffer = preg_replace($regex, "$1=\"$base\$2\"", $buffer);
$regex = '#\s+(src|href|poster)="(?!/|' . $protocols . '|\#|\')([^"]*)"#m';
$buffer = preg_replace($regex, " $1=\"$base\$2\"", $buffer);
$this->checkBuffer($buffer);

$regex = '#(onclick="window.open\(\')(?!/|' . $protocols . '|\#)([^/]+[^\']*?\')#m';
Expand Down

0 comments on commit 2eecc38

Please sign in to comment.