aboutsummaryrefslogtreecommitdiffstats
path: root/www/webalizer
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2003-07-08 11:28:01 +0800
committerdinoex <dinoex@FreeBSD.org>2003-07-08 11:28:01 +0800
commit76b4b3c403d759ec3eafb4ea5dafac8c3f97c79e (patch)
treeca5c520e55d00f4f017b90778149236190b91855 /www/webalizer
parentcc0781bf1f1398f7e4130f6c3d7c2ed65c598801 (diff)
downloadfreebsd-ports-graphics-76b4b3c403d759ec3eafb4ea5dafac8c3f97c79e.tar.gz
freebsd-ports-graphics-76b4b3c403d759ec3eafb4ea5dafac8c3f97c79e.tar.zst
freebsd-ports-graphics-76b4b3c403d759ec3eafb4ea5dafac8c3f97c79e.zip
- add patch lowercase-url-bug.patch from MASTER_SITTE
Diffstat (limited to 'www/webalizer')
-rw-r--r--www/webalizer/Makefile2
-rw-r--r--www/webalizer/files/patch-lowercase-url-bug32
2 files changed, 33 insertions, 1 deletions
diff --git a/www/webalizer/Makefile b/www/webalizer/Makefile
index 6e8e12d6adc..2c186dfe72b 100644
--- a/www/webalizer/Makefile
+++ b/www/webalizer/Makefile
@@ -7,7 +7,7 @@
PORTNAME= webalizer
PORTVERSION= 2.1.10
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES+= www
MASTER_SITES= ftp://ftp.mrunix.net/pub/webalizer/ \
ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/
diff --git a/www/webalizer/files/patch-lowercase-url-bug b/www/webalizer/files/patch-lowercase-url-bug
new file mode 100644
index 00000000000..29d7ac8710e
--- /dev/null
+++ b/www/webalizer/files/patch-lowercase-url-bug
@@ -0,0 +1,32 @@
+--- webalizer.c 2002-04-16 18:11:31.000000000 -0400
++++ webalizer.c.new 2003-07-07 12:35:45.000000000 -0400
+@@ -688,6 +688,14 @@
+ /* un-escape URL */
+ unescape(log_rec.url);
+
++ /* strip query portion of cgi scripts */
++ cp1 = log_rec.url;
++ while (*cp1 != '\0')
++ if (!isurlchar(*cp1)) { *cp1 = '\0'; break; }
++ else cp1++;
++ if (log_rec.url[0]=='\0')
++ { log_rec.url[0]='/'; log_rec.url[1]='\0'; }
++
+ /* check for service (ie: http://) and lowercase if found */
+ if ( (cp2=strstr(log_rec.url,"://")) != NULL)
+ {
+@@ -699,14 +707,6 @@
+ }
+ }
+
+- /* strip query portion of cgi scripts */
+- cp1 = log_rec.url;
+- while (*cp1 != '\0')
+- if (!isurlchar(*cp1)) { *cp1 = '\0'; break; }
+- else cp1++;
+- if (log_rec.url[0]=='\0')
+- { log_rec.url[0]='/'; log_rec.url[1]='\0'; }
+-
+ /* strip off index.html (or any aliases) */
+ lptr=index_alias;
+ while (lptr!=NULL)