Parcourir la source

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

version-14
Rushabh Mehta il y a 7 ans
committed by GitHub
Parent
révision
89b28c317e
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      frappe/website/render.py

+ 1
- 1
frappe/website/render.py Voir le fichier

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


Chargement…
Annuler
Enregistrer