mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 16:18:55 +01:00 
			
		
		
		
	Sanitize spaces when setting URLs without domain
It throws an URISyntaxException otherwise.
This commit is contained in:
		@@ -341,7 +341,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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user