diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2013-11-22 23:27:10 -0500 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2013-11-22 23:27:10 -0500 |
commit | 3fd53f7221352702ffe64f9de9ef7820b75e51b8 (patch) | |
tree | 196c73ff9ba9278f25fc9db063cbf182c75772f6 /config/lightsquid | |
parent | 595c831d2768547d49e6daf147889c6aee15f9a4 (diff) | |
parent | 3a5b698d014f470e7b475261d5e7d2926d4fc220 (diff) | |
download | pfsense-packages-3fd53f7221352702ffe64f9de9ef7820b75e51b8.tar.gz pfsense-packages-3fd53f7221352702ffe64f9de9ef7820b75e51b8.tar.bz2 pfsense-packages-3fd53f7221352702ffe64f9de9ef7820b75e51b8.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'config/lightsquid')
-rw-r--r-- | config/lightsquid/sqstat.class.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/lightsquid/sqstat.class.php b/config/lightsquid/sqstat.class.php index 228aecfe..03695a47 100644 --- a/config/lightsquid/sqstat.class.php +++ b/config/lightsquid/sqstat.class.php @@ -179,7 +179,8 @@ class squidstat{ } fclose($this->fp); - if ($raw[0]!="HTTP/1.0 200 OK") { $this->errorMsg(1, "Cannot get data. Server answered: $raw[0]"); + if (!preg_match("/^HTTP.* 200 OK$/", $raw[0])) { + $this->errorMsg(1, "Cannot get data. Server answered: $raw[0]"); return false; } |