im.pidgin.pidgin: e82ae16ed445d6896fec536a492fcc17bc6098e4

markdoliner at pidgin.im markdoliner at pidgin.im
Tue Oct 16 02:55:33 EDT 2007


-----------------------------------------------------------------
Revision: e82ae16ed445d6896fec536a492fcc17bc6098e4
Ancestor: 4c59953fd39724c7b48e897585df61dab901c4d2
Author: markdoliner at pidgin.im
Date: 2007-10-16T06:40:06
Branch: im.pidgin.pidgin

Modified files:
        libpurple/util.c

ChangeLog: 

When checking for redirects in purple_util_fetch_url(), look for
"\nLocation:" instead of just "Location:"  The latter incorrectly
matches "Content-Location:", which has a different meaning.

Fixes #2953

-------------- next part --------------
============================================================
--- libpurple/util.c	bb614dd45ec36a524a1e2d62568d5cac522d2c93
+++ libpurple/util.c	d521c665770b892fcb65e5701b37a75faa40a457
@@ -3493,7 +3493,7 @@ parse_redirect(const char *data, size_t 
 	gboolean full;
 	int len;
 
-	if ((s = g_strstr_len(data, data_len, "Location: ")) == NULL)
+	if ((s = g_strstr_len(data, data_len, "\nLocation: ")) == NULL)
 		/* We're not being redirected */
 		return FALSE;
 


More information about the Commits mailing list