changeset 20961:4a8366502f01

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
author Mark Doliner <mark@kingant.net>
date Tue, 16 Oct 2007 06:40:06 +0000
parents f9d1e6b138a7
children 999a91ba653f d447ccd6c34c
files libpurple/util.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Tue Oct 16 04:27:20 2007 +0000
+++ b/libpurple/util.c	Tue Oct 16 06:40:06 2007 +0000
@@ -3493,7 +3493,7 @@
 	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;