Home » HTML » Pager » Bug #6680
fileName parameter crashes with %
Details
| Submitted | 2006-02-03 09:04 UTC |
|---|---|
| From | gonzalo123 at gmail dot com |
| Assigned | quipo |
| Status | Closed |
| Package | Pager |
| PHP Version | 5.0.4 |
| OS | SUSE 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",
...