You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Report malformed percent-escapes in Google resource URLs
getGatekeeperClassFor() decoded user-supplied URL parts with a bare
decodeURIComponent(). A bare `%` -- ordinary in a Gmail search or label
like "50% off" -- made it throw `URIError: URI malformed` instead of the
friendly errors the rest of the function raises for bad input.
Route the four user-input decodes in that function through a
decodePercentEncoded() helper that names the offending URL and points at
`%25`. Malformed input is rejected rather than read literally: these
values scope the binding, so guessing at intent could scope it to
something other than what the user thinks they connected.
Fixes#55
0 commit comments