Case insensitive comparison in raw_find_str() (httpparser.c) as

suggested by Craig Nelson in SF Tracker [ 1689382 ] DLINK DIR-625 patch.


git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@158 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
Marcelo Roberto Jimenez 2007-04-19 13:05:33 +00:00
parent f8c4d81ee5
commit 948c959be5
5 changed files with 17 additions and 6 deletions

View File

@ -1,3 +1,12 @@
*************************************************************************
Version 1.4.5
*************************************************************************
2007-04-06 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
* Case insensitive comparison in raw_find_str() (httpparser.c) as
suggested by Craig Nelson in SF Tracker [ 1689382 ] DLINK DIR-625
patch.
*************************************************************************
Version 1.4.4
*************************************************************************

1
THANKS
View File

@ -8,6 +8,7 @@ exempt of errors.
- Arno Willig
- Chaos
- Craig Nelson
- David Maass
- Emil Ljungdahl
- Erik Johansson

View File

@ -620,7 +620,7 @@ ixmlNode_cloneNode(IXML_Node *nodeptr,
*/
EXPORT_SPEC BOOL
ixmlNode_hasAttributes(IXML_Node *node
ixmlNode_hasAttributes(IXML_Node *nodeptr
/** The {\bf Node} to query for attributes. */
);
@ -630,7 +630,7 @@ ixmlNode_hasAttributes(IXML_Node *node
*/
EXPORT_SPEC void
ixmlNode_free(IXML_Node *IXML_Node
ixmlNode_free(IXML_Node *nodeptr
/** The {\bf Node} to free. */
);

View File

@ -2434,7 +2434,8 @@ raw_find_str( IN memptr * raw_value,
c = raw_value->buf[raw_value->length]; // save
raw_value->buf[raw_value->length] = 0; // null-terminate
ptr = strstr( raw_value->buf, str );
// Use strcasestr because the string may not always be exact case
ptr = strcasestr( raw_value->buf, str );
raw_value->buf[raw_value->length] = c; // restore

View File

@ -231,10 +231,10 @@ http_RecvMessage( IN SOCKINFO * info,
"<<< (RECVD) <<<\n%s\n-----------------\n",
parser->msg.msg.buf );
//print_http_headers( &parser->msg );
)
)
if( parser->content_length >
( unsigned int )g_maxContentLength ) {
if( parser->content_length >
( unsigned int )g_maxContentLength ) {
*http_error_code = HTTP_REQ_ENTITY_TOO_LARGE;
return UPNP_E_OUTOF_BOUNDS;
}