Browse Source

[fix] allow a method to be defined as xss_safe

version-14
Anand Doshi 9 years ago
parent
commit
34dbc4ea8e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/__init__.py

+ 1
- 1
frappe/__init__.py View File

@@ -368,7 +368,7 @@ def whitelist(allow_guest=False, xss_safe=False):
pass pass
""" """
def innerfn(fn): def innerfn(fn):
global whitelisted, guest_methods
global whitelisted, guest_methods, xss_safe_methods
whitelisted.append(fn) whitelisted.append(fn)


if allow_guest: if allow_guest:


Loading…
Cancel
Save