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

Use the Public Suffix List #164

Open qgustavor opened 1 year ago

qgustavor commented 1 year ago

It currently uses a regex: https://github.com/SecUSo/privacy-friendly-qr-scanner/blob/cbbf609c9a4bedf0f58e0ceb5616d002cbb59bfa/app/src/main/java/com/secuso/privacyfriendlycodescanner/qrscanner/ui/resultfragments/URLResultFragment.java#L60 Because of that it highlights wrongly a lot of domains not in the regex. Using the public suffix list is probably the best way to handle those cases: https://publicsuffix.org/