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;
}
to <code>false</code> in the Host where a web application is deployed.
(markt)
</fix>
+ <fix>
+ Improve HTTP specification compliance in support of
+ <code>Accept-Language</code> header. (kkolinko)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">