소스 검색

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


불러오는 중...
취소
저장