Skip to content

Commit

Permalink
ENH: added minimum length for command line to avoid that processes co…
Browse files Browse the repository at this point in the history
…ntain the CMDLINE from the template or otherwise unreasonable values
  • Loading branch information
pebert committed Dec 30, 2016
1 parent 4dcc5d0 commit d432400
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion template/deep_process_schema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="command_line" type="xs:string" />
<xs:element name="command_line">
<xs:simpleType>
<xs:restriction base="xs:string">
<!-- the following minLength restriction takes the <![CDATA[ CMDLINE ]]> enclosure
from the Process template file into account (= fails) -->
<xs:minLength value="15" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="loop" type="xs:string" default="no looping" />
<xs:element name="comment" type="xs:string" default="no comment" />
</xs:sequence>
Expand Down

0 comments on commit d432400

Please sign in to comment.