Sfoglia il codice sorgente

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

version-14
Rushabh Mehta 7 anni fa
committed by GitHub
parent
commit
89b28c317e
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      frappe/website/render.py

+ 1
- 1
frappe/website/render.py Vedi File

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


Caricamento…
Annulla
Salva