Entry->EntryTime.tm_hour=Hour;
Entry->EntryTime.tm_min=Minute;
Entry->EntryTime.tm_sec=Second;
+ Entry->EntryTime.tm_isdst=-1;
// the URL is enclosed between double qhotes
++Line;
while (isdigit(*Line)) Entry->DataSize=Entry->DataSize*10+(*Line++-'0');
if (*Line!=' ' || Begin==Line) return(RLRC_Unknown);
+ // check the entry time
+ if (mktime(&Entry->EntryTime)==-1) {
+ debuga(_("Invalid date or time found in the common log file\n"));
+ return(RLRC_InternalError);
+ }
+
// it is safe to alter the line buffer now that we are returning a valid entry
Entry->Ip[IpLen]='\0';
Entry->HttpCode[HttpCodeLen]='\0';
Entry->EntryTime.tm_hour=Hour;
Entry->EntryTime.tm_min=Minute;
Entry->EntryTime.tm_sec=Second;
+ Entry->EntryTime.tm_isdst=-1;
// the ID of the user
Entry->User=++Line;
if (*Line!='\t' || Line==Begin) return(RLRC_Unknown);
// get the smart filter
-
+ //! \bug Smart filter ignored from sarg log format.
+
+ // check the entry time
+ if (mktime(&Entry->EntryTime)==-1) {
+ debuga(_("Invalid date or time found in the common log file\n"));
+ return(RLRC_InternalError);
+ }
+
// it is safe to alter the line buffer now that we are returning a valid entry
Entry->Ip[IpLen]='\0';
Entry->HttpCode[HttpCodeLen]='\0';