Also serve htm files with wrapper

This commit is contained in:
shortcutme 2017-10-04 12:37:56 +02:00
parent 6984575901
commit 4d991cda6d
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -267,7 +267,7 @@ class UiRequest(object):
if match:
address = match.group("address")
inner_path = match.group("inner_path").lstrip("/")
if "." in inner_path and not inner_path.endswith(".html"):
if "." in inner_path and not inner_path.endswith(".html") and not inner_path.endswith(".htm"):
return self.actionSiteMedia("/media" + path) # Only serve html files with frame
if self.isAjaxRequest():
return self.error403("Ajax request not allowed to load wrapper") # No ajax allowed on wrapper