Change "DOCUMENT_URI" to "PHP_SELF"
DOCUMENT_URI works with Apache. To be compliant with Nginx and probably some others, use PHP_SELF
This commit is contained in:
parent
9f7d118f6f
commit
fd11dc782c
@ -1411,7 +1411,7 @@ class ExtraFields
|
|||||||
// current object id can be use into filter
|
// current object id can be use into filter
|
||||||
if (strpos($InfoFieldList[4], '$ID$') !== false && !empty($objectid)) {
|
if (strpos($InfoFieldList[4], '$ID$') !== false && !empty($objectid)) {
|
||||||
$InfoFieldList[4] = str_replace('$ID$', $objectid, $InfoFieldList[4]);
|
$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$
|
// Pattern for word=$ID$
|
||||||
$word = '\b[a-zA-Z0-9-\.-_]+\b=\$ID\$';
|
$word = '\b[a-zA-Z0-9-\.-_]+\b=\$ID\$';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user