stas 2003/02/19 22:52:10
Modified: Apache Apache.pm
Log:
add a note that the original string passed to Apache::unescape_url is
mangled, so only the return value should be used.
Revision Changes Path
1.73 +6 -1 modperl/Apache/Apache.pm
Index: Apache.pm
===================================================================
RCS file: /home/cvs/modperl/Apache/Apache.pm,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- Apache.pm 13 Aug 2002 03:18:48 -0000 1.72
+++ Apache.pm 20 Feb 2003 06:52:10 -0000 1.73
@@ -1209,7 +1209,12 @@
=item Apache::unescape_url($string)
-Handy function for unescapes. Use this one for filenames/paths.
+ $unescaped_url = Apache::unescape_url($string)
+
+Handy function for unescapes. Use this one for
+filenames/paths. Notice that the original C<$string> is mangled in the
+process (because it shrinks).
+
Use unescape_url_info for the result of submitted form data.
=item Apache::unescape_url_info($string)