mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-10 00:52:28 +02:00
The find_last_of implementations were breaking out of the search loop too early for single-character string views. This caused a crash in CookieJar setting a cookie on google.com - CookieJar::default_path knew there was at least one "/" in a string view, but find_last_of returned nullopt, so dereferencing the optional caused a crash. Fixes #6273
9.7 KiB
9.7 KiB