taylor 2004/06/25 13:06:40
Modified: src/java/org/apache/jetspeed/util/parser
DefaultJetspeedParameterParser.java
Log:
upload service contriibuted by Shinsuke Sugaya
http://nagoya.apache.org/jira/browse/JS1-387
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.6 +7 -1
jakarta-jetspeed/src/java/org/apache/jetspeed/util/parser/DefaultJetspeedParameterParser.java
Index: DefaultJetspeedParameterParser.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/parser/DefaultJetspeedParameterParser.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- DefaultJetspeedParameterParser.java 4 Jun 2004 18:07:18 -0000 1.5
+++ DefaultJetspeedParameterParser.java 25 Jun 2004 20:06:40 -0000 1.6
@@ -110,6 +110,12 @@
String str = super.getString(name);
if (str == null) return null;
+ String header = getRequest().getHeader("Content-type");
+ if (header != null && header.startsWith("multipart/form-data"))
+ {
+ return str;
+ }
+
try
{
return new String(str.getBytes("8859_1"), getCharacterEncoding());
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]