| OLD | NEW |
| 1 #!/usr/bin/perl -wT | 1 #!/usr/bin/perl -wT |
| 2 use strict; | 2 use strict; |
| 3 use CGI; | 3 use CGI; |
| 4 | 4 |
| 5 my $cgi = new CGI; | 5 my $cgi = new CGI; |
| 6 | 6 |
| 7 print "X-XSS-Protection: 1\n"; |
| 7 print "Content-Type: text/html; charset=UTF-8\n\n"; | 8 print "Content-Type: text/html; charset=UTF-8\n\n"; |
| 8 | 9 |
| 9 print "<html>\n"; | 10 print "<html>\n"; |
| 10 print "<head>\n"; | 11 print "<head>\n"; |
| 11 print '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">\n'; | 12 print '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">\n'; |
| 12 print "</head>\n"; | 13 print "</head>\n"; |
| 13 print "<body>\n"; | 14 print "<body>\n"; |
| 14 print "<span>"; | 15 print "<span>"; |
| 15 print $cgi->param('q'); | 16 print $cgi->param('q'); |
| 16 print "</span>hi there<script>hello=1;</script>\n"; | 17 print "</span>hi there<script>hello=1;</script>\n"; |
| 17 print "</body></html>\n"; | 18 print "</body></html>\n"; |
| OLD | NEW |