From ad6fcea6b008638ca532436ecf8ba9fe7e41ffdd Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 3 Feb 2008 12:04:48 +0000 Subject: Add url_fragment to extract fragment from URL Optionally allow url_compare to ignore fragments in comparison Fix handling of url_compare result in a few places Fix redirects which contain fragments in the Location header svn path=/trunk/netsurf/; revision=3826 --- utils/url.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils/url.h') diff --git a/utils/url.h b/utils/url.h index b35b6e376..9a1b934a5 100644 --- a/utils/url.h +++ b/utils/url.h @@ -54,8 +54,9 @@ url_func_result url_parent(const char *url, char **result); url_func_result url_plq(const char *url, char **result); url_func_result url_path(const char *url, char **result); url_func_result url_leafname(const char *url, char **result); +url_func_result url_fragment(const char *url, char **result); url_func_result url_compare(const char *url1, const char *url2, - bool *result); + bool nofrag, bool *result); url_func_result url_get_components(const char *url, struct url_components *result); -- cgit v1.2.3