diff --git a/app/classes/shared/helpers.py b/app/classes/shared/helpers.py index 24256081..f1f81bae 100644 --- a/app/classes/shared/helpers.py +++ b/app/classes/shared/helpers.py @@ -9,6 +9,7 @@ import base64 import socket import random import logging +import html from datetime import datetime from socket import gethostname @@ -455,17 +456,19 @@ class Helpers: return data @staticmethod - def generate_tree(folder, html=""): + def generate_tree(folder, output=""): for filename in os.listdir(folder): + print(filename) + filename = html.escape(filename) print(filename) rel = os.path.join(folder, filename) if os.path.isdir(rel): - html += '