mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
xml hacks-test
This commit is contained in:
+6
-1
@@ -21,7 +21,6 @@ REPO_PATH = ''
|
||||
VERBOSE = False
|
||||
OUTPUT_PATH = ''
|
||||
|
||||
|
||||
def load_objects(file_path, VERBOSE):
|
||||
files = []
|
||||
manifest_files = path.join(path.expanduser(REPO_PATH), file_path)
|
||||
@@ -254,6 +253,12 @@ def generate_workbench_panels(response_tasks, stories):
|
||||
trim_blocks=True)
|
||||
template = j2_env.get_template('panel.j2')
|
||||
output_path = OUTPUT_PATH + "/default/data/ui/panels/workbench_panel_" + response_file_name + ".xml"
|
||||
|
||||
if response_task['search'].find(">") is not -1:
|
||||
response_task['search']= response_task['search'].replace(">",">")
|
||||
if response_task['search'].find("<") is not -1:
|
||||
response_task['search']= response_task['search'].replace("<","<")
|
||||
|
||||
output = template.render(search=response_task['search'])
|
||||
with open(output_path, 'w') as f:
|
||||
f.write(output)
|
||||
|
||||
Reference in New Issue
Block a user