From f9160ecea7c56c46360050831750cda1b943346d Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Thu, 22 Jan 2009 06:23:00 -0500
Subject: [PATCH] Fix infinite while loop
---
bin/modcss.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/modcss.php b/bin/modcss.php
index 3ee1e23..a4bd084 100644
--- a/bin/modcss.php
+++ b/bin/modcss.php
@@ -63,14 +63,14 @@
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');
--
Gitblit v1.9.1