PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » Pager » Bug #6680

fileName parameter crashes with %

Details

Submitted2006-02-03 09:04 UTC
Fromgonzalo123 at gmail dot com
Assignedquipo
StatusClosed
PackagePager
PHP Version5.0.4
OSSUSE SLS9
Roadmaps(Not assigned)

Comments

[2006-02-03 09:04 UTC] gonzalo123 at gmail dot com

Description:
------------
When I try to create a Pager object with factory method and I put into the parameter array one % symbol (for example an HTML blank space) it crashes. Pager replaces "%d" with page number but if there is other % symbol the output is ""

...
'fileName' => "$SITE?cmd=".urlencode($CMD)."&id=%d",
...

Urlencode sometimes returns "%" (is valid in HTML request)

Test script:
---------------
$CMD = "hello world";
...
'fileName' => "$SITE?cmd=".urlencode($CMD)."&id=%d",
...