From 68339259a94a4d4eddc6294df73ba68a4cebea11 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 20 Sep 2015 09:20:48 +0200 Subject: [PATCH] Replace space characters in URLs with encoded values --- src/main/java/net/pterodactylus/rhynodge/filters/ComicSiteFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/rhynodge/filters/ComicSiteFilter.java b/src/main/java/net/pterodactylus/rhynodge/filters/ComicSiteFilter.java index 1d9e6f7..39da74d 100644 --- a/src/main/java/net/pterodactylus/rhynodge/filters/ComicSiteFilter.java +++ b/src/main/java/net/pterodactylus/rhynodge/filters/ComicSiteFilter.java @@ -65,7 +65,7 @@ public abstract class ComicSiteFilter implements Filter { for (String imageUrl : imageUrls) { String imageComment = (imageCounter < imageComments.size()) ? imageComments.get(imageCounter) : ""; try { - URI stripUri = new URI(htmlState.uri()).resolve(imageUrl); + URI stripUri = new URI(htmlState.uri()).resolve(imageUrl.replaceAll(" ", "%20")); Strip strip = new Strip(stripUri.toString(), imageComment); imageCounter++; comic.add(strip); -- 2.7.4