From 7797f5cbd60d3a45ba6029508928d7cc7d52849f Mon Sep 17 00:00:00 2001 From: Steve Block Date: Sat, 4 Sep 2010 20:46:56 +0100 Subject: [PATCH] Revert "Bug fix 2337042 URL + URL = URL that starts with "/."" This change broke LayoutTest fast/url/ipv4.html This reverts commit ff93a851c578d0b570c84b3a83a41a4930e7107c. Change-Id: Ic27602be9fdd855fbc1517deed9e7e9737f5b9b5 --- WebCore/platform/KURL.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/WebCore/platform/KURL.cpp b/WebCore/platform/KURL.cpp index 380cb41c8..16b84b5c3 100644 --- a/WebCore/platform/KURL.cpp +++ b/WebCore/platform/KURL.cpp @@ -1295,13 +1295,6 @@ void KURL::parse(const char* url, const String* originalString) if (m_protocolInHTTPFamily && hierarchical && pathEnd == pathStart) *p++ = '/'; -#if PLATFORM(ANDROID) - // Remove any trailing '.' from base, in order to conform to RFC 3986 section 5.4 - if (p[-1] == '.') { - p--; - } -#endif /* PLATFORM(ANDROID) */ - // add path, escaping bad characters if (!hierarchical || !hasSlashDotOrDotDot(url)) appendEscapingBadChars(p, url + pathStart, pathEnd - pathStart); -- 2.11.0