Pager and $_SERVER['QUERY_STRING']
| From: | Torsten Roehr | Date: | Sat, 19 Mar 2005 13:34:35 +0000 |
| Subject: | Pager and $_SERVER['QUERY_STRING'] | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-18149@lists.php.net to get a copy of this message | ||
Hi,
is there a way to tell Pager to ignore the existing $_SERVER['QUERY_STRING']
when building the URLs? This is necessary when an action has been executed
(e.g. index.php?userId=1&deleteUser) and should then not be part of the
generated URLs anymore. My quick fix was manually resetting
$_SERVER['QUERY_STRING'] to '';
This could easily be achieved with an option called 'ignoreQueryString' that
defaults to false to keep BC. If the maintainers agree with this I would
happily provide a patch/text diff atop the current CVS version.
Any ideas?
Best regards,
Torsten Roehr