mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 10:08:27 +01:00
Fix warning
This commit is contained in:
@@ -998,7 +998,7 @@ if (!defined('NOLOGIN')) {
|
||||
$hookmanager->initHooks(array('main'));
|
||||
|
||||
// Code for search criteria persistence.
|
||||
if (!empty($_GET['save_lastsearch_values'])) { // We must use $_GET here
|
||||
if (!empty($_GET['save_lastsearch_values']) && !empty($_SERVER["HTTP_REFERER"])) { // We must use $_GET here
|
||||
$relativepathstring = preg_replace('/\?.*$/', '', $_SERVER["HTTP_REFERER"]);
|
||||
$relativepathstring = preg_replace('/^https?:\/\/[^\/]*/', '', $relativepathstring); // Get full path except host server
|
||||
// Clean $relativepathstring
|
||||
|
||||
Reference in New Issue
Block a user