From: Frédéric Marchal Date: Thu, 20 May 2010 17:54:55 +0000 (+0000) Subject: Escape any percent character in the URL X-Git-Tag: v2.3-pre5~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fac1aeaefc0c09885aa822edeadfa270769440e5;p=thirdparty%2Fsarg.git Escape any percent character in the URL --- diff --git a/util.c b/util.c index 64e110b..325a343 100644 --- a/util.c +++ b/util.c @@ -1688,6 +1688,8 @@ void output_html_url(FILE *fp_ou,const char *url) while (*url) { if (*url=='&') fputs("&",fp_ou); + else if (*url=='%') + fputs("%25",fp_ou); else fputc(*url,fp_ou); url++;