/[suikacvs]/www/test/html/link/href/escape/dump-query.cgi
Suika

Contents of /www/test/html/link/href/escape/dump-query.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Thu Oct 23 10:49:59 2008 UTC (18 years, 1 month ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
<http://koton.jp/w/6/#comment-5>

1 wakaba 1.1 #!/usr/bin/perl
2     use strict;
3    
4     print "Content-Type: text/html; charset=iso-8859-1\n\n<title>URL query of the Request-URI</title>";
5    
6     my $q = $ENV{QUERY_STRING};
7    
8     if (defined $q) {
9     print "<code>";
10     $q =~ s/&/&amp;/g;
11     $q =~ s/</&lt;/g;
12     print $q;
13     print "</code>";
14     } else {
15     print "(null)";
16     }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24