diff --git a/lib/common.lib.php b/lib/common.lib.php index bb0f6a2cd..34dbb6532 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1964,7 +1964,7 @@ function html_end() $buffer = ob_get_contents(); ob_end_clean(); preg_match('#(.*)#is', $buffer, $bodys); - preg_match_all('/(\r|\n)]+>/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) {