* GSWeb.framework/GSWRequest.m

([_getFormValuesFromMultipartFormData]): Always set the default
	character set of the mime parser but be efficient for latin-1
	and utf-8.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21769 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2005-10-04 10:24:42 +00:00
parent 0b03330415
commit b38c59f884
2 changed files with 25 additions and 14 deletions

View file

@ -1,3 +1,10 @@
2005-10-04 David Ayers <d.ayers@inode.at>
* GSWeb.framework/GSWRequest.m
([_getFormValuesFromMultipartFormData]): Always set the default
character set of the mime parser but be efficient for latin-1
and utf-8.
2005-10-02 David Ayers <d.ayers@inode.at>
* GSWeb.framework/GSWBaseParser.m
@ -1377,8 +1384,8 @@
o -_handleRequest: partially rewritten for exception handling
* GSWeb.framework/GSWHTMLURLValuedElement.m:
o fix in -appendURLToResponse:inContext: when we have key and
filename binding (Stéphane Corthésy <stephane@sente.ch>
and Philip Mötteli <Philip.Moetteli@tele2.ch>)
filename binding (Stéphane Corthésy <stephane@sente.ch>
and Philip Mötteli <Philip.Moetteli@tele2.ch>)
* GSWeb.framework/GSWApplication.h/.m:
o added -handleActionRequestErrorWithRequest:exception:reason:
requestHanlder:actionClassName:actionName:actionClass:
@ -2603,9 +2610,9 @@
o removed commented set/getIVar
* GSWeb.framework/GSWSession.m:
o retain/release deleteContextID in -savePageInPermanentCache
(from Stéphane Corthésy <stephane@sente.ch>)
(from Stéphane Corthésy <stephane@sente.ch>)
o retain/release deleteContextID in -_savePage:forChange
(from Stéphane Corthésy <stephane@sente.ch>)
(from Stéphane Corthésy <stephane@sente.ch>)
2003-03-23 David Ayers <d.ayers@inode.at>

View file

@ -1878,18 +1878,22 @@ RCS_ID("$Id$")
parser=[GSMimeParser mimeParser];
[parser parse:headersData];
[parser expectNoHeaders];
if ((e = [self formValueEncoding]) != NSISOLatin1StringEncoding)
e = [self formValueEncoding];
switch (e)
{
if (e == NSUTF8StringEncoding)
{
[parser setDefaultCharset: @"utf-8"];
}
else
{
[parser setDefaultCharset:
[GSObjCClass(parser) charsetFromEncoding: e]];
}
case NSISOLatin1StringEncoding:
[parser setDefaultCharset: @"iso-8859-1"];
break;
case NSUTF8StringEncoding:
[parser setDefaultCharset: @"utf-8"];
break;
default:
[parser setDefaultCharset:
[GSObjCClass(parser) charsetFromEncoding: e]];
break;
}
if ([parser parse:_contentData])
[parser parse:nil];
NSDebugMLLog(@"requests",@"[parser isComplete]=%d",[parser isComplete]);