瀏覽代碼

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

version-14
Rushabh Mehta 7 年之前
committed by GitHub
父節點
當前提交
89b28c317e
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 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…
取消
儲存