From f215ce52dbbf1ea1fe6a3911a72c2926710587e4 Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 29 Sep 2017 09:43:39 +0800 Subject: [PATCH] ipaylinks HTTP_REFERER notice --- webht/third_party/pay/controllers/iPayLinksService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webht/third_party/pay/controllers/iPayLinksService.php b/webht/third_party/pay/controllers/iPayLinksService.php index 861be2e4..12ff910d 100644 --- a/webht/third_party/pay/controllers/iPayLinksService.php +++ b/webht/third_party/pay/controllers/iPayLinksService.php @@ -697,7 +697,7 @@ class IPayLinksService extends CI_Controller $ret->data = $respObject = (Object) $resp; $ref = ""; } else { - $ref = $_SERVER['HTTP_REFERER'] ? $_SERVER['HTTP_REFERER'] : NULL; + $ref = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : NULL; $r = iconv("UTF-8", "UTF-8//IGNORE", $resp); $ret->data = $respObject = @ simplexml_load_string($resp); // test