aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp
diff options
context:
space:
mode:
authorAdam Domurad <[email protected]>2013-03-22 10:32:05 -0400
committerAdam Domurad <[email protected]>2013-03-22 10:32:05 -0400
commitc52ccc8e6696311f31a5a82adbd14b05600ba1b3 (patch)
tree6f24af2c78f29095385975bdef623485ffc32139 /plugin/icedteanp
parent83536b2d2a7e840df4f398af77f631fbf1f5a910 (diff)
Revert behaviour of PluginParameterParser#isInt to fail on overflow
Diffstat (limited to 'plugin/icedteanp')
-rw-r--r--plugin/icedteanp/java/sun/applet/PluginParameterParser.java7
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;
+ }
}
/**