diff --git a/lib/common.lib.php b/lib/common.lib.php index 056681f0a..3a3bdaec4 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1959,12 +1959,12 @@ function html_end() $buffer = ob_get_contents(); ob_end_clean(); preg_match('#(.*)#is', $buffer, $bodys); - preg_match_all('/]+>/i', $bodys[0], $links); + preg_match_all('/(\r|\n)]+>/i', $bodys[0], $links); $stylesheet = ''; $links[0] = array_unique($links[0]); foreach ($links[0] as $key=>$link) { //$link = PHP_EOL.$links[0][$i]; - $stylesheet .= PHP_EOL.$link; + $stylesheet .= $link; $buffer = preg_replace('#'.$link.'#', '', $buffer); } return preg_replace('#()#', "$1$stylesheet", $buffer);