From 23bca6f4cdef98f97383596aa90ad3d16dab7872 Mon Sep 17 00:00:00 2001 From: Vaadasch Date: Sun, 28 Jul 2019 00:32:29 +0200 Subject: [PATCH] Change "DOCUMENT_URI" to "PHP_SELF" DOCUMENT_URI works with Apache. To be compliant with Nginx and probably some others, use PHP_SELF --- htdocs/core/class/extrafields.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index cde9f993d48..08456ae19ca 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -1411,7 +1411,7 @@ class ExtraFields // current object id can be use into filter if (strpos($InfoFieldList[4], '$ID$') !== false && !empty($objectid)) { $InfoFieldList[4] = str_replace('$ID$', $objectid, $InfoFieldList[4]); - } elseif (preg_match("#^.*list.php$#", $_SERVER["DOCUMENT_URI"])) { + } elseif (preg_match("#^.*list.php$#", $_SERVER["PHP_SELF"])) { // Pattern for word=$ID$ $word = '\b[a-zA-Z0-9-\.-_]+\b=\$ID\$';