projects
/
ZNCAdmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aa922f
)
fixed possible endless loop in HTTPConnector.class.php
author
pk910
<philipp@zoelle1.de>
Mon, 12 Aug 2013 20:46:51 +0000
(22:46 +0200)
committer
pk910
<philipp@zoelle1.de>
Mon, 12 Aug 2013 20:46:51 +0000
(22:46 +0200)
zncadmin/HTTPConnector.class.php
patch
|
blob
|
history
diff --git
a/zncadmin/HTTPConnector.class.php
b/zncadmin/HTTPConnector.class.php
index 0a2379353d81165288cbb87bb54cd646601b611c..c4dc03b2de7b272d603ad5fd187d10c0bf3c0982 100644
(file)
--- a/
zncadmin/HTTPConnector.class.php
+++ b/
zncadmin/HTTPConnector.class.php
@@
-41,6
+41,8
@@
class HTTPConnector {
$path="/".$hexp[1];
$data = "";
$fp = fsockopen($rhost, $port);
+ if(!$fp)
+ return;
fputs($fp, "POST $path HTTP/1.1\r\n");
foreach($post as $key => $val) {
if(is_array($val)) {
@@
-106,6
+108,8
@@
class HTTPConnector {
}
$path="/".$hexp[1];
$fp = fsockopen($rhost, $port);
+ if(!$fp)
+ return;
fputs($fp, "GET $path HTTP/1.1\r\n");
fputs($fp, "Accept-Language: de-DE\r\n");
fputs($fp, "Accept-Encoding: deflate\r\n");