Skip to content

Commit

Permalink
Strictly UTF-8 decode the fallback URL
Browse files Browse the repository at this point in the history
Bikeshed warned that I'd never defined |fallbackUrl|, but I missed it
before going on parental leave.
  • Loading branch information
jyasskin committed Nov 30, 2018
1 parent 25a0996 commit 876b3c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions loading.bs
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,9 @@ the result of the following steps:
1. Let |fallbackUrlBytes| be the result of [=read buffer/reading=]
|fallbackUrlLength| bytes from |stream|.
1. If |fallbackUrlBytes| is a failure, return it.
1. Let |fallbackUrl| be the result of [=UTF-8 decode without BOM or fail=] on
|fallbackUrlBytes|.
1. If |fallbackUrl| is a failure, return it.
1. If the result of running the [=URL parser=] on |fallbackUrl| is a failure, if
it has a non-null [=url/fragment=], or if its [=url/scheme=] is something
other than `"https"`, return a failure.
Expand Down

0 comments on commit 876b3c9

Please sign in to comment.