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

Fix #6997: Only load urls via QR code that are http/https #6998

Merged
merged 1 commit into from
Feb 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,7 @@ public class BrowserViewController: UIViewController {
let qrCodeController = RecentSearchQRCodeScannerController { [weak self] string in
guard let self = self else { return }

if let url = URIFixup.getURL(string) {
if let url = URIFixup.getURL(string), url.isWebPage(includeDataURIs: false) {
self.didScanQRCodeWithURL(url)
} else {
self.didScanQRCodeWithText(string)
Expand Down