fred
fred copied to clipboard
Fix prefix detection to support https, web+freenet: and ext+freenet:
Support web+freenet: and ext+freenet: as protocol handlers since it doesn't look like freenet: is getting whitelisted any time soon.
https seems to work without the change, perhaps the host part is currently always being stripped before calling the function? Added the check to allow it in case that ever changes.
That looks good. Can you check whether you can add a test that ensures that it still works for previously supported URLs but does not let any additional URLs through? This will require extending FreenetURITest.java
I’ll see that I add a test in a second PR.