# HG changeset patch # User Mike Becker # Date 1444745458 -7200 # Node ID 97a52ce52b1a457097f59e0c6b114033f4a0b6ee # Parent ba8f1691c0ee06f7a5cbbc4160f7971f1ce9439d don't allow signs for date strings (always expect full years) diff -r ba8f1691c0ee -r 97a52ce52b1a libidav/utils.c --- a/libidav/utils.c Tue Oct 13 15:54:31 2015 +0200 +++ b/libidav/utils.c Tue Oct 13 16:10:58 2015 +0200 @@ -74,8 +74,8 @@ str++; } - // ensure we have numeric values (maybe with sign) - if(!isdigit(*str) && *str != '-' && *str != '+') { + // ensure we have numeric values + if(!isdigit(*str)) { return 1; } @@ -88,7 +88,7 @@ str++; tparts.tm_mon = strtoul(str, &str, 10) - 1; - if (*str++ != '-') { + if(*str++ != '-') { return 1; }