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

Patch for URI::Escape

Thread Next
From:
=?iso-8859-1?q?srinithan?=
Date:
April 30, 2003 06:59
Subject:
Patch for URI::Escape
Message ID:
20030430135918.42246.qmail@web8201.mail.in.yahoo.com
Hi,

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 URI::Escape.pm 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.
       visit http://in.tv.yahoo.com
Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About