Procházet zdrojové kódy

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

version-14
Rushabh Mehta před 7 roky
committed by GitHub
rodič
revize
89b28c317e
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      frappe/website/render.py

+ 1
- 1
frappe/website/render.py Zobrazit soubor

@@ -80,7 +80,7 @@ def is_static_file(path):
if ('.' not in path): if ('.' not in path):
return False return False
extn = path.rsplit('.', 1)[-1] 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 return False


for app in frappe.get_installed_apps(): for app in frappe.get_installed_apps():


Načítá se…
Zrušit
Uložit