libsoup r1182 - in trunk: . libsoup



Author: danw
Date: Sun Oct 19 13:41:17 2008
New Revision: 1182
URL: http://svn.gnome.org/viewvc/libsoup?rev=1182&view=rev

Log:
	* libsoup/soup-auth.c (soup_auth_update): compare scheme name
	case-insensitively, to prevent an infinite loop when it's not in
	standard form. #536285


Modified:
   trunk/ChangeLog
   trunk/libsoup/soup-auth.c

Modified: trunk/libsoup/soup-auth.c
==============================================================================
--- trunk/libsoup/soup-auth.c	(original)
+++ trunk/libsoup/soup-auth.c	Sun Oct 19 13:41:17 2008
@@ -266,7 +266,7 @@
 	g_return_val_if_fail (auth_header != NULL, FALSE);
 
 	scheme = soup_auth_get_scheme_name (auth);
-	if (strncmp (auth_header, scheme, strlen (scheme)) != 0)
+	if (g_ascii_strncasecmp (auth_header, scheme, strlen (scheme)) != 0)
 		return FALSE;
 
 	params = soup_header_parse_param_list (auth_header + strlen (scheme));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]