From c52ccc8e6696311f31a5a82adbd14b05600ba1b3 Mon Sep 17 00:00:00 2001 From: Adam Domurad Date: Fri, 22 Mar 2013 10:32:05 -0400 Subject: Revert behaviour of PluginParameterParser#isInt to fail on overflow --- plugin/icedteanp/java/sun/applet/PluginParameterParser.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugin/icedteanp') 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; + } } /** -- cgit v1.2.3