ソースを参照

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


読み込み中…
キャンセル
保存