Title: [176309] trunk/LayoutTests
Revision
176309
Author
[email protected]
Date
2014-11-18 21:41:15 -0800 (Tue, 18 Nov 2014)

Log Message

Use of uninitialized value in string eq in many http tests
https://bugs.webkit.org/show_bug.cgi?id=138852

Reviewed by Daniel Bates.

* http/tests/security/xssAuditor/resources/echo-intertag.pl: Don't use it uninitialized.

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (176308 => 176309)


--- trunk/LayoutTests/ChangeLog	2014-11-19 05:13:54 UTC (rev 176308)
+++ trunk/LayoutTests/ChangeLog	2014-11-19 05:41:15 UTC (rev 176309)
@@ -1,3 +1,12 @@
+2014-11-18  Alexey Proskuryakov  <[email protected]>
+
+        Use of uninitialized value in string eq in many http tests
+        https://bugs.webkit.org/show_bug.cgi?id=138852
+
+        Reviewed by Daniel Bates.
+
+        * http/tests/security/xssAuditor/resources/echo-intertag.pl: Don't use it uninitialized.
+
 2014-11-18  Benjamin Poulain  <[email protected]>
 
         Add the initial implementation of dynamic specificity for :matches()

Modified: trunk/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl (176308 => 176309)


--- trunk/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl	2014-11-19 05:13:54 UTC (rev 176308)
+++ trunk/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl	2014-11-19 05:41:15 UTC (rev 176309)
@@ -65,10 +65,12 @@
     }
 }
 
-if ($cgi->param('csp') eq '_empty_') {
-    print "X-WebKit-CSP: reflected-xss\n";
-} elsif ($cgi->param('csp')) {
-    print "X-WebKit-CSP: reflected-xss " . $cgi->param('csp') . "\n";
+if (defined($cgi->param('csp'))) {
+    if ($cgi->param('csp') eq '_empty_') {
+        print "X-WebKit-CSP: reflected-xss\n";
+    } else {
+        print "X-WebKit-CSP: reflected-xss " . $cgi->param('csp') . "\n";
+    }
 }
 
 print "Content-Type: text/html; charset=";
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to