[Webkit-unassigned] [Bug 127970] New: Solidus stripping in DOMURL::setHostname seems wrong

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 30 17:12:35 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=127970

           Summary: Solidus stripping in DOMURL::setHostname seems wrong
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mjs at apple.com


This code in setHostname (also in HTMLAnchorElement) seems dubious and is probably wrong:

void DOMURL::setHostname(const String& value)
{
    // Before setting new value:                                                                                                 
    // Remove all leading U+002F SOLIDUS ("/") characters.                                                                       
    unsigned i = 0;
    unsigned hostLength = value.length();
    while (value[i] == '/')
        i++;

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list