Mercurial > farol
changeset 11:a32f9b86edb4
main: Fix parsing of cisco id
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Mon, 29 Sep 2014 14:19:07 +0200 |
parents | 6594ff7c37b4 |
children | 4219d6fb4c38 |
files | farol/main.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/farol/main.py Mon Sep 29 14:18:37 2014 +0200 +++ b/farol/main.py Mon Sep 29 14:19:07 2014 +0200 @@ -105,7 +105,7 @@ elif 'oracle' in request.form: parse_url("http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/%s.xml" % request.form['id']) elif 'cisco' in request.form: - kind, date, name = request.form['id'].split('-', 3) + kind, date, name = request.form['id'].split('-', 2) kind = {'sa': 'Advisory', 'sr': 'Response'}[kind] parse_url("http://tools.cisco.com/security/center/contentxml/CiscoSecurity%(kind)s/cisco-%(id)s/cvrf/cisco-%(id)s_cvrf.xml" % {'kind': kind, 'id': request.form['id']}) elif 'nasl' in request.form: