-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The raw date parser (git_date::parse::function::parse_raw()) accepted some inputs that it should not have. Specifically, it would accept: - Any character for the timezone offset's sign - Trailing, non-whitespace characters after the timezone offset Now either '+' or '-' is required for the timezone offset sign and only trailing whitespace is allowed. Additional tests are added to cover both acceptable and unacceptable inputs. N.B. the raw date parser is still accepting of whitespace leading, in the middle of, and trailing the date string. A yet stricter parser would only allow a single space character between the seconds-since-epoch and the timezone offset. Signed-off-by: Peter Grayson <pete@jpgrayson.net>
- Loading branch information
Showing
2 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters