Переглянути джерело

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

version-14
Rushabh Mehta 7 роки тому
committed by GitHub
джерело
коміт
89b28c317e
Не вдалося знайти GPG ключ що відповідає даному підпису Ідентифікатор GPG ключа: 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():


Завантаження…
Відмінити
Зберегти