diff options
author | Adam Domurad <[email protected]> | 2013-03-22 10:32:05 -0400 |
---|---|---|
committer | Adam Domurad <[email protected]> | 2013-03-22 10:32:05 -0400 |
commit | c52ccc8e6696311f31a5a82adbd14b05600ba1b3 (patch) | |
tree | 6f24af2c78f29095385975bdef623485ffc32139 /plugin/icedteanp | |
parent | 83536b2d2a7e840df4f398af77f631fbf1f5a910 (diff) |
Revert behaviour of PluginParameterParser#isInt to fail on overflow
Diffstat (limited to 'plugin/icedteanp')
-rw-r--r-- | plugin/icedteanp/java/sun/applet/PluginParameterParser.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginParameterParser.java b/plugin/icedteanp/java/sun/applet/PluginParameterParser.java index bc6eb50..1db6034 100644 --- a/plugin/icedteanp/java/sun/applet/PluginParameterParser.java +++ b/plugin/icedteanp/java/sun/applet/PluginParameterParser.java @@ -60,7 +60,12 @@ class PluginParameterParser { } static boolean isInt(String s) { - return s.matches("^-?\\d+$"); + try { + Integer.parseInt(s); + return true; + } catch(NumberFormatException e) { + return false; + } } /** |