summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-01-22 11:23:00 +0000
committerthomascube <thomas@roundcube.net>2009-01-22 11:23:00 +0000
commitf9160ecea7c56c46360050831750cda1b943346d (patch)
tree8d6272e44022003d6c13919521bc2a9367b99279 /bin
parent755900cd6aef3e9808dfd76c797904a2c8b08bed (diff)
Fix infinite while loop
Diffstat (limited to 'bin')
-rw-r--r--bin/modcss.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/modcss.php b/bin/modcss.php
index 3ee1e2310..a4bd0846f 100644
--- a/bin/modcss.php
+++ b/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');