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:
parent
f8c4d81ee5
commit
948c959be5
@ -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
|
Version 1.4.4
|
||||||
*************************************************************************
|
*************************************************************************
|
||||||
|
1
THANKS
1
THANKS
@ -8,6 +8,7 @@ exempt of errors.
|
|||||||
|
|
||||||
- Arno Willig
|
- Arno Willig
|
||||||
- Chaos
|
- Chaos
|
||||||
|
- Craig Nelson
|
||||||
- David Maass
|
- David Maass
|
||||||
- Emil Ljungdahl
|
- Emil Ljungdahl
|
||||||
- Erik Johansson
|
- Erik Johansson
|
||||||
|
@ -620,7 +620,7 @@ ixmlNode_cloneNode(IXML_Node *nodeptr,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
EXPORT_SPEC BOOL
|
EXPORT_SPEC BOOL
|
||||||
ixmlNode_hasAttributes(IXML_Node *node
|
ixmlNode_hasAttributes(IXML_Node *nodeptr
|
||||||
/** The {\bf Node} to query for attributes. */
|
/** The {\bf Node} to query for attributes. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -630,7 +630,7 @@ ixmlNode_hasAttributes(IXML_Node *node
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
EXPORT_SPEC void
|
EXPORT_SPEC void
|
||||||
ixmlNode_free(IXML_Node *IXML_Node
|
ixmlNode_free(IXML_Node *nodeptr
|
||||||
/** The {\bf Node} to free. */
|
/** The {\bf Node} to free. */
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2434,7 +2434,8 @@ raw_find_str( IN memptr * raw_value,
|
|||||||
c = raw_value->buf[raw_value->length]; // save
|
c = raw_value->buf[raw_value->length]; // save
|
||||||
raw_value->buf[raw_value->length] = 0; // null-terminate
|
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
|
raw_value->buf[raw_value->length] = c; // restore
|
||||||
|
|
||||||
|
@ -231,10 +231,10 @@ http_RecvMessage( IN SOCKINFO * info,
|
|||||||
"<<< (RECVD) <<<\n%s\n-----------------\n",
|
"<<< (RECVD) <<<\n%s\n-----------------\n",
|
||||||
parser->msg.msg.buf );
|
parser->msg.msg.buf );
|
||||||
//print_http_headers( &parser->msg );
|
//print_http_headers( &parser->msg );
|
||||||
)
|
)
|
||||||
|
|
||||||
if( parser->content_length >
|
if( parser->content_length >
|
||||||
( unsigned int )g_maxContentLength ) {
|
( unsigned int )g_maxContentLength ) {
|
||||||
*http_error_code = HTTP_REQ_ENTITY_TOO_LARGE;
|
*http_error_code = HTTP_REQ_ENTITY_TOO_LARGE;
|
||||||
return UPNP_E_OUTOF_BOUNDS;
|
return UPNP_E_OUTOF_BOUNDS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user