aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/HttpUtils.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2017-01-06 18:54:29 +0100
committerVirtualTam <virtualtam+github@flibidi.net>2017-01-07 14:37:40 +0100
commitee6f4b64a91d76070f930cdf7602ab4686714c7a (patch)
tree29056ef186c14a08d9ce7e1aa7514fa98bd2197e /application/HttpUtils.php
parent7418f7cb60524c3bfc2f240386b5e3e7eb9b3257 (diff)
downloadShaarli-ee6f4b64a91d76070f930cdf7602ab4686714c7a.tar.gz
Shaarli-ee6f4b64a91d76070f930cdf7602ab4686714c7a.tar.zst
Shaarli-ee6f4b64a91d76070f930cdf7602ab4686714c7a.zip
Cleanup: use safe boolean comparisons
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'application/HttpUtils.php')
-rw-r--r--application/HttpUtils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/HttpUtils.php b/application/HttpUtils.php
index e8fc1f5d..a81f9056 100644
--- a/application/HttpUtils.php
+++ b/application/HttpUtils.php
@@ -122,7 +122,7 @@ function get_http_response($url, $timeout = 30, $maxBytes = 4194304)
122 $content = substr($response, $headSize); 122 $content = substr($response, $headSize);
123 $headers = array(); 123 $headers = array();
124 foreach (preg_split('~[\r\n]+~', $rawHeadersLastRedir) as $line) { 124 foreach (preg_split('~[\r\n]+~', $rawHeadersLastRedir) as $line) {
125 if (empty($line) or ctype_space($line)) { 125 if (empty($line) || ctype_space($line)) {
126 continue; 126 continue;
127 } 127 }
128 $splitLine = explode(': ', $line, 2); 128 $splitLine = explode(': ', $line, 2);