summaryrefslogtreecommitdiff
path: root/utils/url.h
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2008-04-02 00:43:51 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2008-04-02 00:43:51 +0000
commit0d39c69763f7918fdd884516140e23b4eab51b10 (patch)
tree713bb8ca2d3cb04d1f6caac656d9d04809854dc2 /utils/url.h
parent4b7c105afc4ce7d9cb5b13c95f0bee26004a2166 (diff)
downloadnetsurf-0d39c69763f7918fdd884516140e23b4eab51b10.tar.gz
netsurf-0d39c69763f7918fdd884516140e23b4eab51b10.tar.bz2
- riscos/gui.c(path_to_url): escape the characters which need to be escaped when converting the host path to file: URL.
- utils/{url.c,url.h}(url_escape): * added parameter 'toskip' to specify number of input characters which need to be skipped in the escape process. This avoids extra malloc buffer juggling. * added parameter 'escexceptions' to specify the characters which need to be excluded from the escape process. Solves SF tracker ID 1910169. Note that when discname in path contains '/' characters (case: "file:///Sunfish#192.168.0.50::/home/joty.$/jo.html") or there is no discname specified at all (case "file:///HostFS:$/jo.htm"), you need an UnixLib fix as in http://www.riscos.info/websvn/listing.php?repname=gccsdk&path=%2Ftrunk%2Fgcc4%2F&rev=3395&sc=1 svn path=/trunk/netsurf/; revision=4069
Diffstat (limited to 'utils/url.h')
-rw-r--r--utils/url.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/url.h b/utils/url.h
index 9a1b934a5..f83c626f6 100644
--- a/utils/url.h
+++ b/utils/url.h
@@ -47,8 +47,8 @@ url_func_result url_host(const char *url, char **result);
url_func_result url_scheme(const char *url, char **result);
url_func_result url_nice(const char *url, char **result,
bool remove_extensions);
-url_func_result url_escape(const char *unescaped, bool sptoplus,
- char **result);
+url_func_result url_escape(const char *unescaped, size_t toskip,
+ bool sptoplus, const char *escexceptions, char **result);
url_func_result url_canonical_root(const char *url, char **result);
url_func_result url_parent(const char *url, char **result);
url_func_result url_plq(const char *url, char **result);