Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
Add dash character to vt_id syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
janowagner committed Jun 15, 2018
1 parent 57ad9ef commit 69bdf4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/OSP.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
<type>
<name>vt_id</name>
<summary>Identifier for a vulnerability test</summary>
<pattern>xsd:token { pattern = "[0-9a-zA-Z_.:]{1,80}" }</pattern>
<pattern>xsd:token { pattern = "[0-9a-zA-Z_\-.:]{1,80}" }</pattern>
</type>
<command>
<name>help</name>
Expand Down
2 changes: 1 addition & 1 deletion ospd/ospd.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def __init__(self, certfile, keyfile, cafile):
for name, param in BASE_SCANNER_PARAMS.items():
self.add_scanner_param(name, param)
self.vts = dict()
self.vt_id_pattern = re.compile("[0-9a-zA-Z_:.]{1,80}")
self.vt_id_pattern = re.compile("[0-9a-zA-Z_\-:.]{1,80}")

def set_command_attributes(self, name, attributes):
""" Sets the xml attributes of a specified command. """
Expand Down

0 comments on commit 69bdf4e

Please sign in to comment.