summaryrefslogtreecommitdiff
path: root/src/input/input_http.c
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2004-12-24 01:59:11 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2004-12-24 01:59:11 +0000
commit3e0803b5fa44a10eba8960ff163b982ac29131d3 (patch)
tree73dbf5a07429fb3cf8e6c4161277277e888e9c41 /src/input/input_http.c
parent585f2f2b82d5ad7e8599b7a0880e6f213e0fb3db (diff)
downloadxine-lib-3e0803b5fa44a10eba8960ff163b982ac29131d3.tar.gz
xine-lib-3e0803b5fa44a10eba8960ff163b982ac29131d3.tar.bz2
Fix crash related to relative HTTP redirect URLs.
These URLs are now canonicalised. CVS patchset: 7297 CVS date: 2004/12/24 01:59:11
Diffstat (limited to 'src/input/input_http.c')
-rw-r--r--src/input/input_http.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c
index fbd5d9d87..c50750233 100644
--- a/src/input/input_http.c
+++ b/src/input/input_http.c
@@ -19,7 +19,7 @@
*
* input plugin for http network streams
*
- * $Id: input_http.c,v 1.101 2004/12/12 22:01:06 mroi Exp $
+ * $Id: input_http.c,v 1.102 2004/12/24 01:59:12 dsalt Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -892,8 +892,9 @@ static int http_plugin_open (input_plugin_t *this_gen ) {
lprintf ("trying to open target of redirection: >%s<\n", href);
+ href = _x_canonicalise_url (this->mrl, href);
free(this->mrl);
- this->mrl = strdup(href);
+ this->mrl = href;
return http_plugin_open(this_gen);
}
}