From e4d8a51642a27370761a1968223cd213fa35c20f Mon Sep 17 00:00:00 2001 From: Kazutaka Miyasaka Date: Tue, 1 Dec 2009 15:01:48 +0100 Subject: temporary workaround against PHP bug #49733 Ignore-this: 286b24e2f71cf179f8a70aba64a42b48 darcs-hash:20091201140148-9b77a-5c79f87861bda812f1bb62de613930a6313cf041.gz --- inc/common.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3