Changeset 29061 in webkit


Ignore:
Timestamp:
Jan 1, 2008 2:40:57 AM (16 years ago)
Author:
eric@webkit.org
Message:

Reviewed by Alexey.

Don't replace \ with / in data: urls
http://bugs.webkit.org/show_bug.cgi?id=16692

Test: fast/loader/url-data-replace-backslash.html

  • platform/KURL.cpp: (WebCore::KURL::init):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r29058 r29061  
     12008-01-01  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Alexey.
     4       
     5        Don't replace \ with / in data: urls
     6        http://bugs.webkit.org/show_bug.cgi?id=16692
     7
     8        * fast/loader/url-data-replace-backslash-expected.txt: Added.
     9        * fast/loader/url-data-replace-backslash.html: Added.
     10
    1112007-12-31  Sam Weinig  <sam@webkit.org>
    212
  • trunk/WebCore/ChangeLog

    r29060 r29061  
     12008-01-01  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Alexey.
     4
     5        Don't replace \ with / in data: urls
     6        http://bugs.webkit.org/show_bug.cgi?id=16692
     7
     8        Test: fast/loader/url-data-replace-backslash.html
     9
     10        * platform/KURL.cpp:
     11        (WebCore::KURL::init):
     12
    1132008-01-01  Alp Toker  <alp@atoker.com>
    214
  • trunk/WebCore/platform/KURL.cpp

    r26676 r29061  
    286286    // for compatibility with Win IE, we must treat backslashes as if they were slashes, as long as we're not dealing with the javascript: schema
    287287    DeprecatedString substitutedRelative;
    288     bool shouldSubstituteBackslashes = relative.contains('\\') && !relative.startsWith("javascript:", false);
    289     if (shouldSubstituteBackslashes) {
     288    bool shouldSubstituteBackslashes = relative.contains('\\') && !(relative.startsWith("javascript:", false) || relative.startsWith("data:", false));
     289    if (shouldSubstituteBackslashes)
    290290        substitutedRelative = substituteBackslashes(relative);
    291     }
    292291
    293292    const DeprecatedString &rel = shouldSubstituteBackslashes ? substitutedRelative : relative;
Note: See TracChangeset for help on using the changeset viewer.