Преглед изворни кода

[security] exclude python files from being seen directly (#4942)

version-14
Rushabh Mehta пре 7 година
committed by GitHub
родитељ
комит
89b28c317e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      frappe/website/render.py

+ 1
- 1
frappe/website/render.py Прегледај датотеку

@@ -80,7 +80,7 @@ def is_static_file(path):
if ('.' not in path):
return False
extn = path.rsplit('.', 1)[-1]
if extn in ('html', 'md', 'js', 'xml', 'css', 'txt'):
if extn in ('html', 'md', 'js', 'xml', 'css', 'txt', 'py'):
return False

for app in frappe.get_installed_apps():


Loading…
Откажи
Сачувај