Skip to content
  •'s avatar
    Make the setMetadataURL function foolproof by having it remove user info · 8c29e20a authored
    Patch by Darin Adler <> on 2009-10-07
    Reviewed by John Sullivan.
    * Misc/WebNSFileManagerExtras.m:
    (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
    Call _web_URLByRemovingUserInfo on the passed in URL string after converting
    it to a URL, and then convert it back to a string.
    * Misc/WebNSURLExtras.h: Added _web_URLByRemovingUserInfo.
    * Misc/ Removed unused WebKitURLComponents struct.
    (-[NSURL _web_URLByTruncatingOneCharacterBeforeComponent:]): Renamed to be
    clearer on what this does.
    (-[NSURL _webkit_URLByRemovingFragment]): Changed to call new name.
    (-[NSURL _webkit_URLByRemovingResourceSpecifier]): Ditto.
    (-[NSURL _web_URLByRemovingComponentAndSubsequentCharacter:]): Added.
    (-[NSURL _web_URLByRemovingUserInfo]): Added.
    git-svn-id: 268f45cc-cd09-0410-ab3c-d52691b4dbfc