mirror of
https://github.com/markqvist/Reticulum
synced 2026-11-27 23:00:28 +00:00
Handle silly links
This commit is contained in:
1 parent
63947ed69a
commit
0333884877
1 file changed
+1
@@ -705,6 +705,7 @@ class NomadNetworkNode():
|
||||
content = self.m_heading("Invalid Path", 1) + "\n\nNo file path specified.\n"
|
||||
return self.render_template(content, st=st)
|
||||
|
||||
file_path = file_path.lstrip("./").replace("/./", "/")
|
||||
file_ext = os.path.splitext(file_path)[1].lower()
|
||||
renderable = file_ext in self.RENDERABLE_EXTS
|
||||
if not renderable: raw = True; render = False
|
||||
|
||||
Reference in new issue
Block a user