]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Apply patch reported by rudi@darx.com in bug #1626911
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 11 Jan 2010 08:35:10 +0000 (08:35 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 11 Jan 2010 08:35:10 +0000 (08:35 +0000)
log.c

diff --git a/log.c b/log.c
index fc48d50c1c7bc5310ab533b6fa6fd6d3c198b5a2..624bb537364e57c9d2ac26118a0c1de40daaa620 100644 (file)
--- a/log.c
+++ b/log.c
@@ -1096,7 +1096,9 @@ int main(int argc,char *argv[])
 #if 0
          if((str = strstr(user,"%20")) != NULL) {
             /*
-            Why is it necessary to truncate the user name at the first space ?
+            This is a patch introduced to solve bug #1624251 reported at sourceforge but
+            the side effect is to truncate the name at the first space and merge the reports
+            of people whose name is identical up to the first space.
 
             The old code used to truncate the user name at the first % if a %20 was
             found anywhere in the string. That means the string could be truncated
@@ -1119,7 +1121,7 @@ int main(int argc,char *argv[])
 
          for(str=user; *str; str++) {
             if(*str=='.') dotinuser++;
-            if(*str=='?' || *str=='.' || *str==':' || *str=='/' || *str=='\\')
+            if(*str=='?' || *str=='.' || *str==':' || *str=='/' || *str=='\\' || *str=='\'')
                *str='_';
          }