use more graceful check function to verify key existence
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 9 Oct 2014 06:23:05 +0000 (08:23 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 9 Oct 2014 06:23:05 +0000 (08:23 +0200)
web/Obj/curl-de-brisk.phh

index b19d3d5..a78b3fc 100755 (executable)
@@ -190,7 +190,7 @@ class Proxy_chk_cmd_cls extends CDS_cmd_cls {
 
         foreach($this->scan_headers as $key){
             //proxy detected? lets log...
-            if($headers[$key]) {
+            if(array_key_exists($key, $headers)) {
                 // we already are behind a PROXY, this are our headers
                 if ($key == 'X-Proxy-ID') {
                     if ($headers[$key] == '860705422')