You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var queryurl = arxiv.baseurl + encodeURIComponent(query)
Using encodeURIComponent is overkill here, it will 'urlencode' all characters of query, including '&', '?' and others. According to my understanding of the HTTP protocol, this is even plain wrong.
Solution
Use encodeURI instead:
var queryurl = arxiv.baseurl + encodeURI(query)
The text was updated successfully, but these errors were encountered:
Problem
In getpapers/lib/arxiv.js we see:
var queryurl = arxiv.baseurl + encodeURIComponent(query)
Using encodeURIComponent is overkill here, it will 'urlencode' all characters of query, including '&', '?' and others. According to my understanding of the HTTP protocol, this is even plain wrong.
Solution
Use encodeURI instead:
var queryurl = arxiv.baseurl + encodeURI(query)
The text was updated successfully, but these errors were encountered: