]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Hide the alias prefix for the user name
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Mon, 27 Jul 2015 18:11:47 +0000 (20:11 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Mon, 27 Jul 2015 18:11:47 +0000 (20:11 +0200)
When a host name is replaced by an alias, the host name is prefixed with a
* to write it with no link to a special function such as a link to block
that url.

Host name don't need that prefix.

userinfo.c

index f7e5e0badd1ff3f48a3b535a08737e4bfc163585..45d92a8e006622a208e04fc4248900fe67d8e51d 100644 (file)
@@ -455,6 +455,7 @@ enum UserProcessError process_user(const char **UserPtr,const char *IpAddress,bo
 
        auser=Alias_Replace(UserAliases,user);
        if (auser!=user) {
+               if (*auser==ALIAS_PREFIX) auser++;//no need for that indicator for a user name
                user=auser;
                *IsIp=false;
        }