Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #4301: Fix session restore with special characters not working (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon-T authored and iccub committed Oct 13, 2021
1 parent cbe0b5a commit 747c855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shared/Extensions/URLExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ extension URL {

let components = URLComponents(url: url, resolvingAgainstBaseURL: false)
if self.isErrorPageURL, let queryURL = components?.queryItems?.find({ $0.name == "url" })?.value {
return URL(string: queryURL)
return URL(string: queryURL) ?? URL(string: queryURL.escape() ?? queryURL)
}
return nil
}
Expand Down

0 comments on commit 747c855

Please sign in to comment.