Skip to content

Commit 858f5cf

Browse files
authored
More specific catch clause in FileUtils.decodeUrl() (apache#575)
1 parent 1f419c7 commit 858f5cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ static String decodeUrl(final String url) {
11841184
i += 3;
11851185
} while (i < n && url.charAt(i) == '%');
11861186
continue;
1187-
} catch (final RuntimeException ignored) {
1187+
} catch (final IndexOutOfBoundsException | NumberFormatException ignored) {
11881188
// malformed percent-encoded octet, fall through and
11891189
// append characters literally
11901190
} finally {

0 commit comments

Comments
 (0)