Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/resources/echo-property.pl

Issue 1689223003: XSSAuditor: script src=data URLs need truncation at quotes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I can't spell today at all. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/script-tag-with-source-data-url4.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "Content-Type: text/html; charset=UTF-8\n\n"; 7 print "Content-Type: text/html; charset=UTF-8\n\n";
8 8
9 print "<!DOCTYPE html>\n"; 9 print "<!DOCTYPE html>\n";
10 print "<html>\n"; 10 print "<html>\n";
11 print "<body foo=\""; 11 print "<body foo=\"";
12 print $cgi->param('q'); 12 print $cgi->param('q');
13 if ($cgi->param('clutter')) { 13 if ($cgi->param('clutter')) {
14 print $cgi->param('clutter'); 14 print $cgi->param('clutter');
15 } 15 }
16 print "\">\n"; 16 print "\">\n";
17 print "<script>var y = 123;</script>";
17 print "</body>\n"; 18 print "</body>\n";
18 print "</html>\n"; 19 print "</html>\n";
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/script-tag-with-source-data-url4.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698