# HG changeset patch # User Mark Doliner # Date 1192516806 0 # Node ID 4a8366502f01bdebe5b27bf2b0725d1ac600c5b0 # Parent f9d1e6b138a74c2cd0ccbf7af78a7dcfd496fbe5 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 diff -r f9d1e6b138a7 -r 4a8366502f01 libpurple/util.c --- 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;