summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-03-21 22:33:06 +0200
committerAndreas Kling <kling@serenityos.org>2021-03-25 10:59:34 +0100
commit78f0cabb17555333a3577ef8af6169352f838234 (patch)
treef80bc96a53fa446896743afc140284d9975ef09e /Userland/Services
parentedecf8f6a375b04e60e7c4ddcc10b40f350a5d77 (diff)
downloadserenity-78f0cabb17555333a3577ef8af6169352f838234.zip
LibJS: Use Utf8View for string prefix checks
This commit replaces the usage of String::starts_with with Utf8View::starts_with, which first decodes the utf8 encoded string, and as such can take things like overlong encoded sequences into account (which could otherwise cause the prefix check to be inconsistent with the following code points check).
Diffstat (limited to 'Userland/Services')
0 files changed, 0 insertions, 0 deletions