Merge pull request #467 from fredericBregier/3

Fix decodeAttribute in HttpPostRequestDecoder to take into account exception from bad format from URLDecoder.decode
This commit is contained in:
Norman Maurer 2012-07-22 04:40:14 -07:00
commit 7f0f687965

View File

@ -709,6 +709,8 @@ public class HttpPostRequestDecoder {
return URLDecoder.decode(s, charset.name());
} catch (UnsupportedEncodingException e) {
throw new ErrorDataDecoderException(charset.toString(), e);
} catch (IllegalArgumentException e) {
throw new ErrorDataDecoderException("Bad string: '" + s + "'", e);
}
}