summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorKazutaka Miyasaka <kazmiya@gmail.com>2009-12-01 15:01:48 +0100
committerKazutaka Miyasaka <kazmiya@gmail.com>2009-12-01 15:01:48 +0100
commite4d8a51642a27370761a1968223cd213fa35c20f (patch)
treeabfc259f31a15fdb5c468d316aab497748bcfdac /inc/common.php
parentabd40d7c6d64ae113f661c4bdc9f3f4fb99638c4 (diff)
downloadrpg-e4d8a51642a27370761a1968223cd213fa35c20f.tar.gz
rpg-e4d8a51642a27370761a1968223cd213fa35c20f.tar.bz2
temporary workaround against PHP bug #49733
Ignore-this: 286b24e2f71cf179f8a70aba64a42b48 darcs-hash:20091201140148-9b77a-5c79f87861bda812f1bb62de613930a6313cf041.gz
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php6
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