From 88b00262e93d6e5f940be76170efffdb86850a36 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 23 Oct 2017 10:59:27 -0400 Subject: [PATCH] Add timeout for listing of plugins/themes update date. --- openwebvulndb/common/vcs.py | 43 ++++++++++++++++++++--------- openwebvulndb/wordpress/__main__.py | 22 +++++++++------ tests/common_test/vcs_test.py | 16 +++++++++-- 3 files changed, 57 insertions(+), 24 deletions(-) diff --git a/openwebvulndb/common/vcs.py b/openwebvulndb/common/vcs.py index 5efe0f8..1cd4f40 100644 --- a/openwebvulndb/common/vcs.py +++ b/openwebvulndb/common/vcs.py @@ -29,6 +29,10 @@ from .logs import logger +line_pattern = re.compile("(?P\d+)\s+(?P[\w\s\.-]+)\s+(?P[A-Z][a-z]{2})\s+" + "(?P\d{2})\s+(?:(?P\d{4})|(?P