Allow colon in SSH version, at least some trojaned PuTTY clients have version like Putty-Local: Timestamp HH:MM:SS

pull/1608/head
Antti Tönkyrä 10 years ago committed by Victor Julien
parent 1235c578b2
commit 834c36659e

@ -61,7 +61,7 @@
/**
* \brief Regex for parsing the softwareversion string
*/
#define PARSE_REGEX "^\\s*\"?\\s*?([0-9a-zA-Z\\.\\-\\_\\+\\s+]+)\\s*\"?\\s*$"
#define PARSE_REGEX "^\\s*\"?\\s*?([0-9a-zA-Z\\:\\.\\-\\_\\+\\s+]+)\\s*\"?\\s*$"
static pcre *parse_regex;
static pcre_extra *parse_regex_study;

Loading…
Cancel
Save