trikita / obsqr

obsqr - minimalistic QR and barcode scanner for Android
http://trikita.co/obsqr
MIT License
61 stars 20 forks source link

Fixed handling of uppercase http/https urls #9

Open BFlorry opened 6 years ago

BFlorry commented 6 years ago

Previously HTTP: and HTTPS: caused the parser to be mistaken with the url to not have a scheme and adds an extra scheme, making it HTTP://HTTP://WWW... thus making it fail parsing the url properly.

This PR fixes it, as the string is handled in lowercase when checking for a scheme.