Skip to content

Commit 147c0b0

Browse files
authored
fix jinja2 templating with autoescape (#64)
1 parent 83574be commit 147c0b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

register_agent.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def http_codes_serializer(response, status_code):
6464
def create_config_file():
6565
logger.info(f"Create Wazuh agent configuration for node {node_name}")
6666
with open("ossec.jinja2") as file_:
67-
template = Template(file_.read())
67+
template = Template(file_.read(), autoescape=True)
6868
config = template.render(
6969
join_manager_hostname=join_manager_worker,
7070
join_manager_port=join_manager_port,

0 commit comments

Comments
 (0)