diff --git a/plugins/system/sef/sef.php b/plugins/system/sef/sef.php index 3fa5a85457ebb..4a0c6d0ba75e5 100644 --- a/plugins/system/sef/sef.php +++ b/plugins/system/sef/sef.php @@ -90,7 +90,7 @@ public function onAfterRender() { if (strpos($buffer, $attribute) !== false) { - $regex = '#\s+' . $attribute . '"(?!/|' . $protocols . '|\#|\')([^"]+)"#m'; + $regex = '#\s+' . $attribute . '"(?!/|' . $protocols . '|\#|\')([^"]*)"#m'; $buffer = preg_replace($regex, ' ' . $attribute . '"' . $base . '$1"', $buffer); $this->checkBuffer($buffer); }