浏览代码

[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():


正在加载...
取消
保存