]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Revert previous change as the percent character must remain unchanged in the url...
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 20 May 2010 19:36:49 +0000 (19:36 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 20 May 2010 19:36:49 +0000 (19:36 +0000)
util.c

diff --git a/util.c b/util.c
index 325a3434a35014e4bf466db0cad29855a798b9a4..13e9e27ee8cbd9af01590f35d60de0f4f5cdf59c 100644 (file)
--- a/util.c
+++ b/util.c
@@ -576,29 +576,6 @@ char *fixnum2(long long int value, int n)
 }
 
 
-
-void buildhref(char * href)
-{
-   char whref[MAXLEN];
-
-   if(strcmp(href,"./") == 0){
-      href[0]='\0';
-      strcat(href,"<a href='");
-      return;
-   }
-
-   href[strlen(href)-1]='\0';
-   sprintf(whref,"%s",strrchr(href,'/'));
-
-   strcpy(href,"<a href='");
-   strcat(href,whref);
-   strcat(href,"/");
-
-   return;
-
-}
-
-
 char *buildtime(long long int elap)
 {
 
@@ -1688,8 +1665,6 @@ void output_html_url(FILE *fp_ou,const char *url)
    while (*url) {
       if (*url=='&')
          fputs("&amp;",fp_ou);
-      else if (*url=='%')
-         fputs("%25",fp_ou);
       else
          fputc(*url,fp_ou);
       url++;