summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-01-22 11:23:00 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-01-22 11:23:00 +0000
commit8ef344232e15123d0c03edaa1923311e2cdabb94 (patch)
tree82ccc4bd41c6ce7fa287ebe3ca4e81da362b01a4
parent5f92ac313fd0d9da56d0719c365519d51a3576b6 (diff)
Fix infinite while loop
git-svn-id: https://svn.roundcube.net/trunk@2249 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/bin/modcss.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/bin/modcss.php b/roundcubemail/bin/modcss.php
index 3ee1e2310..a4bd0846f 100644
--- a/roundcubemail/bin/modcss.php
+++ b/roundcubemail/bin/modcss.php
@@ -63,14 +63,14 @@ while (!feof($fp)) {
if ($header
&& preg_match('/^HTTP\/1\..\s+(\d+)/', $line, $regs)
&& intval($regs[1]) != 200) {
- break;
+ break;
} else if (empty($line) && $header) {
$header = false;
} else if (!$header) {
$source .= "$line\n";
}
- fclose($fp);
}
+fclose($fp);
if (!empty($source)) {
header('Content-Type: text/css');