]> mop.ddnsfree.com - git repositories - curl-de-sac.git/commitdiff
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 b19d3d5f78af6b4b1dbd82fc75c7021b1bd3c1b8..a78b3fcf50c7031a0d21caa0f449891fcbf1fb9c 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')