[webkit-changes] [WebKit/WebKit] 163f22: Use the last '@' as the hostname terminator.

Commit Queue noreply at github.com
Tue Nov 5 09:23:50 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 163f221495b4804533826fce823e54c8f8c0acb4
      https://github.com/WebKit/WebKit/commit/163f221495b4804533826fce823e54c8f8c0acb4
  Author: Nitin Mahendru <nitinmahendru at apple.com>
  Date:   2024-11-05 (Tue, 05 Nov 2024)

  Changed paths:
    M Source/WTF/wtf/URLHelpers.cpp
    M Tools/TestWebKitAPI/Tests/WTF/cocoa/URLExtras.mm

  Log Message:
  -----------
  Use the last '@' as the hostname terminator.
https://bugs.webkit.org/show_bug.cgi?id=282329
rdar://109780149

Reviewed by Alex Christensen.

If the input URL contains more than 1 '@' then we used the first one
until now. That is causing urls like below to not go to apple.com:
https://apple.com∕@apple.com∕@apple.com

* Source/WTF/wtf/URLHelpers.cpp:
(WTF::URLHelpers::applyHostNameFunctionToURLString):
* Tools/TestWebKitAPI/Tests/WTF/cocoa/URLExtras.mm:
(TestWebKitAPI::TEST(WTF, URLExtras_Solidus)):

Canonical link: https://commits.webkit.org/286160@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list