Re: Possible Pager Bug?

From: Date: Fri, 16 Sep 2005 17:43:37 +0000
Subject: Re: Possible Pager Bug?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39857@lists.php.net to get a copy of this message
>"Carsten Bleek" <carsten.bleek@gmx.de> wrote in message news:200509151705.57750.carsten.bleek@gmx.de... >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&Atilde;&curren;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 Hi Carsten, have you seen this bug report?: http://pear.php.net/bugs/bug.php?id=4897 Best regards, Torsten Roehr

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