Mercurial > pidgin
diff libpurple/util.c @ 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 | aa420b502a6b |
| children | 17ee8c81c99b |
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;
