diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2004-07-23 21:12:38 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2004-07-23 21:12:38 +0000 |
commit | 56bc4566bf2d8d35e06f1203f2f538f8fc71a196 (patch) | |
tree | 7fb6082d9db50d148829e2f4aa36b8e8e811bdae /www/geolizer/files/patch-lowercase-url-bug | |
parent | 7d54de42c1874335ef3de53cecc9516ed634950c (diff) | |
download | ports-56bc4566bf2d8d35e06f1203f2f538f8fc71a196.tar.gz ports-56bc4566bf2d8d35e06f1203f2f538f8fc71a196.zip |
Webalizer+GeoIP
Notes
Notes:
svn path=/head/; revision=114525
Diffstat (limited to 'www/geolizer/files/patch-lowercase-url-bug')
-rw-r--r-- | www/geolizer/files/patch-lowercase-url-bug | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/www/geolizer/files/patch-lowercase-url-bug b/www/geolizer/files/patch-lowercase-url-bug new file mode 100644 index 000000000000..29d7ac8710ef --- /dev/null +++ b/www/geolizer/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) |