develooper Front page | perl.libwww | Postings from April 2003

Patch for URI::Escape

Thread Next
April 30, 2003 06:59
Patch for URI::Escape
Message ID:

When I was trying to escape '[' and ']' characters,
using URI::Escape::uri_escape(), as
URI::Escape::uri_escape("srini[]","[]") it simply
returns the original string - "srini[]" .

Work around can be they should be escaped before
passing as argument to the function.

The solution can be modifying the uri_escape()
function to escape  the '[' and ']'  before doing
pattern matching.

Patched and updated the test cases.

I hope this will be useful.

Thanks and Regards
T. Srinivas 

Missed your favourite TV serial last night? Try the new, Yahoo! TV.
Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About