Sanitize spaces when setting URLs without domain
It throws an URISyntaxException otherwise. (cherry picked from commit ed80ee98a7ebf0b3a546a6269f06f375d4ec4270)
This commit is contained in:
parent
aaad902d6a
commit
c2b07717fc
@ -372,7 +372,7 @@ abstract class HttpSource : CatalogueSource {
|
||||
*/
|
||||
private fun getUrlWithoutDomain(orig: String): String {
|
||||
return try {
|
||||
val uri = URI(orig)
|
||||
val uri = URI(orig.replace(" ", "%20"))
|
||||
var out = uri.path
|
||||
if (uri.query != null) {
|
||||
out += "?" + uri.query
|
||||
|
Loading…
x
Reference in New Issue
Block a user