From 456b5daac0243fe5d6d8bbe6ea5fe434f876c66a Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Thu, 9 Oct 2014 08:23:05 +0200 Subject: [PATCH] use more graceful check function to verify key existence --- web/Obj/curl-de-brisk.phh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.17.1