Ignore:
Timestamp:
Sep 14, 2004, 3:14:01 PM (21 years ago)
Author:
mjs
Message:

JavaScriptCore:

Reviewed by Darin.

  • fixed <rdar://problem/3800315> encode-URI-test layout test is failing
  • kjs/function.cpp: (KJS::GlobalFuncImp::call): Make sure to escape null characters. This is a bug in the new code that made part of the test fail.

WebCore:

Reviewed by Darin.

  • fixed <rdar://problem/3800315> encode-URI-test layout test is failing
  • updated escape/encodeURI layout test to match our new, more compatible behavior.
  • layout-tests/fast/js/global/encode-URI-test.html:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/function.cpp

    r7507 r7558  
    721721          sprintf(tmp, "%%u%04X", u);
    722722          s = UString(tmp);
    723         } else if (strchr(do_not_escape, (char)u)) {
     723        } else if (u != 0 && strchr(do_not_escape, (char)u)) {
    724724          s = UString(c, 1);
    725725        } else {
Note: See TracChangeset for help on using the changeset viewer.