⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176309 in webkit


Ignore:
Timestamp:
Nov 18, 2014, 9:41:15 PM (12 years ago)
Author:
ap@apple.com
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.
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r176307 r176309  
     12014-11-18  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Use of uninitialized value in string eq in many http tests
     4        https://bugs.webkit.org/show_bug.cgi?id=138852
     5
     6        Reviewed by Daniel Bates.
     7
     8        * http/tests/security/xssAuditor/resources/echo-intertag.pl: Don't use it uninitialized.
     9
    1102014-11-18  Benjamin Poulain  <benjamin@webkit.org>
    211
  • trunk/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl

    r166202 r176309  
    6666}
    6767
    68 if ($cgi->param('csp') eq '_empty_') {
    69     print "X-WebKit-CSP: reflected-xss\n";
    70 } elsif ($cgi->param('csp')) {
    71     print "X-WebKit-CSP: reflected-xss " . $cgi->param('csp') . "\n";
     68if (defined($cgi->param('csp'))) {
     69    if ($cgi->param('csp') eq '_empty_') {
     70        print "X-WebKit-CSP: reflected-xss\n";
     71    } else {
     72        print "X-WebKit-CSP: reflected-xss " . $cgi->param('csp') . "\n";
     73    }
    7274}
    7375
Note: See TracChangeset for help on using the changeset viewer.