Skip to content

Commit

Permalink
Verify include in include
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed Nov 16, 2023
1 parent ba9456c commit e7949c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bigbashview/usr/lib/bbv/server/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ def include_html(self, html_content, file_path, original_string):
try:
with open(full_path, 'r') as file:
included_html = file.read()
# Processar includes no conteúdo incluído
included_html = self.process_includes(included_html)
html_content = html_content.replace(original_string, included_html)
except FileNotFoundError:
html_content = html_content.replace(original_string, f"File {full_path} not found")
Expand Down

0 comments on commit e7949c5

Please sign in to comment.