-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reviewer: URLs starting with "//" do not load #6102
Comments
On a sample card:
The above is a shame as it doesn't contain the We can fix this by mapping Relative URLs come in as
This leaves the questions:
|
Those aren't valid URLs are they? Why would we accept URLs without a scheme? Seems Anki upstream should reject them too? Or am I missing some chunk of URL RFC that says "in the absence of a scheme this is the default..." ? |
I believe this is: https://tools.ietf.org/html/rfc3986#section-4.2 |
I do love reading RFCs 🤓 - almost always learn something. HTTPS is my strong preference, and agreed on restricting file:/// to be in collection - willing to reconsider if there is a revolt after attempting it but would try first |
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
Much easier now, we're HTTPS only |
Sounds cool |
I've tried to fix this, it works on my Android 9, but it's not feasible, and there were issues with timeouts on lower APIs The problem is that This means a synchronous call to OkHTTP to obtain the image. A synchronous blocking call isn't feasible - it can theoretically block until a HTTP timeout. So I'll add a snackabar and a message. |
Anki loads URLs beginning with
//
, AnkiDroid failsMy presumption: In AnkiDroid,
//
refers to the root of the filesystem, rather than a selection between HTTP or HTTPSCard source
Chrome error
Card works if the sources are changed from
//
tohttps://
Originally posted by @david-allison-1 in #6101 (comment)
The text was updated successfully, but these errors were encountered: