1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-17 19:26:34 +02:00

Change to originalURL parsing resulted in a different exception if it's malformed, so handle those and refuse to rip

This commit is contained in:
MetaPrime
2025-01-02 02:13:20 -08:00
parent 29d46491f9
commit b1e3771cc9

View File

@@ -256,7 +256,7 @@ public class ChanRipper extends AbstractHTMLRipper {
URL originalURL;
try {
originalURL = new URI(href).toURL();
} catch (MalformedURLException e) {
} catch (MalformedURLException | URISyntaxException | IllegalArgumentException e) {
continue;
}