From: Matteo Nastasi (mop) Date: Thu, 9 Oct 2014 06:23:05 +0000 (+0200) Subject: use more graceful check function to verify key existence X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=curl-de-sac.git;a=commitdiff_plain;h=456b5daac0243fe5d6d8bbe6ea5fe434f876c66a use more graceful check function to verify key existence --- diff --git a/web/Obj/curl-de-brisk.phh b/web/Obj/curl-de-brisk.phh index b19d3d5..a78b3fc 100755 --- a/web/Obj/curl-de-brisk.phh +++ b/web/Obj/curl-de-brisk.phh @@ -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')