diff options
author | John Tytgat <joty@netsurf-browser.org> | 2008-04-02 00:43:51 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2008-04-02 00:43:51 +0000 |
commit | 0d39c69763f7918fdd884516140e23b4eab51b10 (patch) | |
tree | 713bb8ca2d3cb04d1f6caac656d9d04809854dc2 /render/form.c | |
parent | 4b7c105afc4ce7d9cb5b13c95f0bee26004a2166 (diff) | |
download | netsurf-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 'render/form.c')
-rw-r--r-- | render/form.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/form.c b/render/form.c index d99205047..4ed0e4f88 100644 --- a/render/form.c +++ b/render/form.c @@ -564,7 +564,7 @@ char *form_url_encode(struct form *form, s[0] = 0; for (; control; control = control->next) { - url_err = url_escape(control->name, true, &name); + url_err = url_escape(control->name, 0, true, NULL, &name); if (url_err == URL_FUNC_NOMEM) { free(s); return 0; @@ -572,7 +572,7 @@ char *form_url_encode(struct form *form, assert(url_err == URL_FUNC_OK); - url_err = url_escape(control->value, true, &value); + url_err = url_escape(control->value, 0, true, NULL, &value); if (url_err == URL_FUNC_NOMEM) { free(name); free(s); |