diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/common.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php index 6809e5b16..321148c7a 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1133,7 +1133,13 @@ function getGoogleQuery(){ $url = parse_url($_SERVER['HTTP_REFERER']); $query = array(); + + // temporary workaround against PHP bug #49733 + // see http://bugs.php.net/bug.php?id=49733 + if(UTF8_MBSTRING) $enc = mb_internal_encoding(); parse_str($url['query'],$query); + if(UTF8_MBSTRING) mb_internal_encoding($enc); + $q = ''; if(isset($query['q'])) $q = $query['q']; // google, live/msn, aol, ask, altavista, alltheweb, gigablast |