SET(sarg_VERSION 2)
SET(sarg_REVISION "3-pre2")
SET(sarg_BUILD "")
-SET(sarg_BUILDDATE "May-03-2010")
+SET(sarg_BUILDDATE "May-07-2010")
INCLUDE(AddFileDependencies)
INCLUDE(CheckIncludeFile)
SARG ChangeLog
-May-3-2009 Version 2.3-pre2
+May-07-2009 Version 2.3-pre2
- LDAP usertab added.
Now you can have your users in a LDAP Server.
Use these tags in sarg.conf: LDAPHost, LDAPPort, LDAPBindDN, LDAPBindPW,
- Use the word "Redirector" instead of mentioning explicitly squidGuard in the reports as at least Rejik is compatible with sarg (thanks to Maxim Britov).
- The date range passed as argument is not restricted to the actual range covered by the log files any more.
- Fix the exclusion of status codes to exclude more than one code.
+ - Accept date ranges for -d command line option as day-n, week-n and month-n where n is the number of backward days, weeks and months to report.
+ - Strengthen the making of the report file name to drastically limit the characters from the user ID that can appear in the file name. The presence of an unescaped backquote in the user ID would execute the rest of the name as a shell command (fixes bug #2997707 reported by anonymous).
Feb-10-2010 Version 2.2.7.1
- Fixed compilation error reported by some compilers due to an sizeof in a fprintf (thanks to Maxim Britov and Renato Botelho).
-#define VERSION PACKAGE_VERSION" May-03-2010"
+#define VERSION PACKAGE_VERSION" May-07-2010"
#define PGM PACKAGE_NAME
#define URL "http://sarg.sourceforge.net"
skip=0;
for(i=0 ; userid[i] && i<MAX_USER_FNAME_LEN-1 ; i++) {
- if(userid[i]=='?' || userid[i]=='.' || userid[i]==':' || userid[i]=='/' || userid[i]=='\\' || userid[i]=='\'' ||
- userid[i]=='$' || userid[i]=='@' || userid[i]=='\"' || userid[i]=='*') {
+ if(isalnum(userid[i]) || userid[i]=='-' || userid[i]=='_') {
+ user->filename[i]=userid[i];
+ skip=0;
+ } else {
if (!skip) {
user->filename[i]='_';
skip=1;
}
- } else {
- user->filename[i]=userid[i];
- skip=0;
}
}
user->filename[i]='\0';