From: zapata Date: Fri, 14 Feb 2003 03:32:15 +0000 (+0000) Subject: small bugfix X-Git-Tag: BEFORE_MERGE_1_1~264 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=b9d492a95f6b7cf0aaa297819290810bd6b3b9e2;p=mir.git small bugfix --- diff --git a/source/mir/util/HTTPRequestParser.java b/source/mir/util/HTTPRequestParser.java index 130f2e09..a5fd1acf 100755 --- a/source/mir/util/HTTPRequestParser.java +++ b/source/mir/util/HTTPRequestParser.java @@ -30,7 +30,7 @@ public class HTTPRequestParser { try { String result = request.getParameter(aName); - if (result != null && !encoding.equals(request.getCharacterEncoding())) { + if (result != null && encoding!=null && !encoding.equals(request.getCharacterEncoding())) { System.out.println("recoding"); result = new String(result.getBytes(request.getCharacterEncoding()), encoding); }