SecUSo / privacy-friendly-qr-scanner

Privacy Friendly QR Code Scanner for Android
https://secuso.aifb.kit.edu/QR_Scanner.php
GNU General Public License v3.0
302 stars 46 forks source link

Do not prepend http:// to URLs that already have a protocol #151

Open dbrgn opened 1 year ago

dbrgn commented 1 year ago

If the URL already contains a protocol (e.g. fdroidrepos://example.com), do not prepend http:// when sharing it.

See https://gitlab.com/fdroid/fdroidclient/-/merge_requests/1133 for the breakage that this can cause.

Related to #104.

My suggestion: If a string starts with ^[a-zA-Z0-9]+://, do not modify it in any way when opening.