Possible Pager Bug?

From: Date: Thu, 15 Sep 2005 15:05:57 +0000
Subject: Possible Pager Bug?
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39822@lists.php.net to get a copy of this message
Hi, I got a problem with PEAR::Pager when using UTF8. Parameters containing chars using more than one byte are not correctly urlencoded. Eg. ...&foo=bär&... is added to the page Links as ...&foo=bär&... I could help myself with the following patch. Don't know if it's causes problems in other cases. regards, Carsten --- Common.php.orig 2005-09-15 16:44:18.000000000 +0200 +++ Common.php 2005-09-15 16:43:33.000000000 +0200 @@ -1172,7 +1172,7 @@ $tmp = array (); foreach ($data as $key => $val) { if (is_scalar($val)) { - array_push($tmp, $key.'='.$val); + array_push($tmp, $key .'='. urlencode($val) ); continue; } // If the value is an array, recursively parse it -- Carsten Bleek

« previous php.pear.dev (#39822) next »