diff --git a/ChangeLog b/ChangeLog index 92722b4..5b5eee5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +************************************************************************* +Version 1.4.5 +************************************************************************* + +2007-04-06 Marcelo Jimenez + * 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 ************************************************************************* diff --git a/THANKS b/THANKS index 0f789a1..1624852 100644 --- a/THANKS +++ b/THANKS @@ -8,6 +8,7 @@ exempt of errors. - Arno Willig - Chaos +- Craig Nelson - David Maass - Emil Ljungdahl - Erik Johansson diff --git a/ixml/inc/ixml.h b/ixml/inc/ixml.h index 79fd6f5..4ce354f 100644 --- a/ixml/inc/ixml.h +++ b/ixml/inc/ixml.h @@ -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. */ ); diff --git a/upnp/src/genlib/net/http/httpparser.c b/upnp/src/genlib/net/http/httpparser.c index e5b47fd..dee71c9 100644 --- a/upnp/src/genlib/net/http/httpparser.c +++ b/upnp/src/genlib/net/http/httpparser.c @@ -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 diff --git a/upnp/src/genlib/net/http/httpreadwrite.c b/upnp/src/genlib/net/http/httpreadwrite.c index c5f82f2..5f5796f 100644 --- a/upnp/src/genlib/net/http/httpreadwrite.c +++ b/upnp/src/genlib/net/http/httpreadwrite.c @@ -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; }