From 80fe931f803b4a0e96b8dad7f1095d04f58076a0 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Thu, 22 May 2003 13:21:45 +0000 Subject: [project @ 2003-05-22 13:21:45 by bursa] Form GET support (John M Bell) svn path=/import/netsurf/; revision=130 --- utils/utils.c | 45 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 3 deletions(-) (limited to 'utils/utils.c') diff --git a/utils/utils.c b/utils/utils.c index a2fab4e12..bfe089fac 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -1,5 +1,5 @@ /** - * $Id: utils.c,v 1.8 2003/04/11 21:06:51 bursa Exp $ + * $Id: utils.c,v 1.9 2003/05/22 13:21:45 bursa Exp $ */ #include @@ -135,11 +135,48 @@ char *squash_tolat1(xmlChar *s) char *url_join(const char* new, const char* base) { - char* ret; - int i; + char* ret, *nn; + int i,j,k; LOG(("new = %s, base = %s", new, base)); + /* deal with spaces and quotation marks in URLs etc. + also removes spaces from end of links. + There's definitely a better way to do this */ + nn = xcalloc(strlen(new) * 3 + 40, sizeof(char)); + j=0; + for(i=0;i