in reply to Re^2: Parsing un-encoded ampersand in XHTML
in thread Parsing un-encoded ampersand in XHTML
and lexical vars. you should use code and readmore tags, when posting to PM. Back to the quiestion, in your code replace the linesuse strict; use warnings;
with$search_q = $ENV{'QUERY_STRING'}; $search_q =~ s/\&pg=\d+//;
But it is just a guess.$search_q = $ENV{'QUERY_STRING'}; $search_q =~ s/\&pg=\d+//; $search_q =~ s/&(?!amp;)/&/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Parsing un-encoded ampersand in XHTML
by ww (Archbishop) on Oct 08, 2004 at 13:58 UTC |