From: Frederic Marchal Date: Mon, 27 Jul 2015 18:11:47 +0000 (+0200) Subject: Hide the alias prefix for the user name X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=284dab9976d92af6495a601e29ca7cc2514e35b0;p=thirdparty%2Fsarg.git Hide the alias prefix for the user name 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. --- diff --git a/userinfo.c b/userinfo.c index f7e5e0b..45d92a8 100644 --- a/userinfo.c +++ b/userinfo.c @@ -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; }