JETTY-1304 Allow quoted boundaries in Multipart filter

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2847 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2011-03-03 06:30:46 +00:00
parent d0b4ddcb28
commit 7b0a8e561c
3 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,7 @@ jetty-7.3.1-SNAPSHOT
+ 338068 Leaking ConstraintMappings on redeploy
+ 338092 ProxyServlet leaks memory
+ 338607 Removed managed attributes when context is stopped
+ JETTY-1304 Allow quoted boundaries in Multipart filter
+ JETTY-1317 More elegent handling of bad URIs in requests
+ JETTY-1331 Allow alternate XML configuration processors (eg spring)
+ JETTY-1335 HttpClient's SelectConnector clean-up

View File

@ -102,8 +102,8 @@ public class MultiPartFilter implements Filter
String content_type=srequest.getContentType();
// TODO - handle encodings
String boundary="--"+QuotedStringTokenizer.unquote(value(content_type.substring(content_type.indexOf("boundary="))).trim());
String boundary="--"+value(content_type.substring(content_type.indexOf("boundary=")));
byte[] byteBoundary=(boundary+"--").getBytes(StringUtil.__ISO_8859_1);
MultiMap params = new MultiMap();

View File

@ -108,7 +108,7 @@ public class MultipartFilterTest
request.setURI("/context/dump");
String boundary="XyXyXy";
request.setHeader("Content-Type","multipart/form-data; boundary="+boundary);
request.setHeader("Content-Type","multipart/form-data; boundary=\""+boundary+"\"");
String content = "--" + boundary + "\r\n"+