aboutsummaryrefslogtreecommitdiffstats
path: root/www/webalizer/files/patch-ad
blob: dd9de33a0a02814a8d8b33889342127105d4e852 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- output.c.orig   Sun Mar 19 02:37:06 2000
+++ output.c    Sun Sep 24 14:28:15 2000
@@ -1447,10 +1447,17 @@
       rptr=*pointer++;
       if (rptr->flag == OBJ_REG)
       {
-         fprintf(out_fp,"%-8lu %6.02f%%  %s\n",
-            rptr->count,
-            (t_hit==0)?0:((float)rptr->count/t_hit)*100.0,
-            rptr->string);
+    if (strstr(rptr->string,"://")!=NULL)
+       fprintf(out_fp,"%-8lu %6.02f%%  <A HREF=\"%s\">%s</A>\n",
+          rptr->count,
+          (t_hit==0)?0:((float)rptr->count/t_hit)*100.0,
+          rptr->string,
+          rptr->string);
+    else
+       fprintf(out_fp,"%-8lu %6.02f%%  %s\n",
+          rptr->count,
+          (t_hit==0)?0:((float)rptr->count/t_hit)*100.0,
+          rptr->string);
          r_reg--;
       }
    }