ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/myhttpd/misc.pl
(Generate patch)

Comparing Coro/myhttpd/misc.pl (file contents):
Revision 1.1 by root, Sun Aug 19 23:57:52 2001 UTC vs.
Revision 1.2 by root, Wed Nov 28 03:39:46 2001 UTC

3 local $_ = shift; 3 local $_ = shift;
4 s/([()<>%&?,; ='"\x00-\x1f\x80-\xff])/sprintf "%%%02X", ord($1)/ge; 4 s/([()<>%&?,; ='"\x00-\x1f\x80-\xff])/sprintf "%%%02X", ord($1)/ge;
5 $_; 5 $_;
6} 6}
7 7
8sub escape_html($) {
9 local $_ = shift;
10 s/([<>&\x00-\x07\x09\x0b\x0d-\x1f\x7f-\x9f])/sprintf "&#%d;", ord($1)/ge;
11 $_;
12}
13
81; 141;
9 15

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines