From 0d39c69763f7918fdd884516140e23b4eab51b10 Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Wed, 2 Apr 2008 00:43:51 +0000 Subject: - 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 --- render/form.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render') 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); -- cgit v1.2.1