Merge pull request #3872 from AmritasyaPutra/patch-1

Fix for PHP 8.1 Warning
This commit is contained in:
Andreas Gohr 2023-02-02 08:26:35 +01:00 committed by GitHub
commit fdda8c3307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1379,6 +1379,7 @@ function getGoogleQuery() {
$url = parse_url($INPUT->server->str('HTTP_REFERER'));
// only handle common SEs
if(!array_key_exists('host', $url)) return '';
if(!preg_match('/(google|bing|yahoo|ask|duckduckgo|babylon|aol|yandex)/',$url['host'])) return '';
$query = array();