diff options
Diffstat (limited to 'tomcat6-6.0-rhbz-674601.patch')
-rw-r--r-- | tomcat6-6.0-rhbz-674601.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tomcat6-6.0-rhbz-674601.patch b/tomcat6-6.0-rhbz-674601.patch new file mode 100644 index 0000000..64b927f --- /dev/null +++ b/tomcat6-6.0-rhbz-674601.patch @@ -0,0 +1,18 @@ +--- ./java/org/apache/catalina/connector/Request.java.orig 2011-02-02 15:50:25.623469439 -0700 ++++ ./java/org/apache/catalina/connector/Request.java 2011-02-02 15:51:58.832219055 -0700 +@@ -2717,8 +2717,14 @@ + int semi = entry.indexOf(";q="); + if (semi >= 0) { + try { +- quality = Double.parseDouble(entry.substring(semi + 3)); ++ String strQuality = entry.substring(semi + 3); ++ if (strQuality.length() <= 5) { ++ quality = Double.parseDouble(strQuality); ++ } else { ++ quality = 0.0; ++ } + } catch (NumberFormatException e) { ++ + quality = 0.0; + } + entry = entry.substring(0, semi); |