diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2004-12-24 01:59:11 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2004-12-24 01:59:11 +0000 |
commit | 3e0803b5fa44a10eba8960ff163b982ac29131d3 (patch) | |
tree | 73dbf5a07429fb3cf8e6c4161277277e888e9c41 /src/input/http_helper.h | |
parent | 585f2f2b82d5ad7e8599b7a0880e6f213e0fb3db (diff) | |
download | xine-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/http_helper.h')
-rw-r--r-- | src/input/http_helper.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/input/http_helper.h b/src/input/http_helper.h index 0c63f4a14..546a55803 100644 --- a/src/input/http_helper.h +++ b/src/input/http_helper.h @@ -19,7 +19,7 @@ * * URL helper functions * - * $Id: http_helper.h,v 1.2 2004/03/31 07:42:50 valtri Exp $ + * $Id: http_helper.h,v 1.3 2004/12/24 01:59:12 dsalt Exp $ */ #ifndef HTTP_HELPER_H @@ -37,4 +37,14 @@ int _x_parse_url (char *url, char **proto, char** host, int *port, char **user, char **password, char **uri); +/* + * canonicalise url, given base + * base must be valid according to _x_parse_url + * url may only contain "://" if it's absolute + * + * return: + * the canonicalised URL (caller must free() it) + */ +char *_x_canonicalise_url (const char *base, const char *url); + #endif /* HTTP_HELPER_H */ |