From 34dbc4ea8e3b3c562ed3b5baff53e6665504b0ec Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 24 Sep 2015 19:54:37 +0530 Subject: [PATCH] [fix] allow a method to be defined as xss_safe --- frappe/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/__init__.py b/frappe/__init__.py index a73abfd1b2..fc8d85c287 100644 --- a/frappe/__init__.py +++ b/frappe/__init__.py @@ -368,7 +368,7 @@ def whitelist(allow_guest=False, xss_safe=False): pass """ def innerfn(fn): - global whitelisted, guest_methods + global whitelisted, guest_methods, xss_safe_methods whitelisted.append(fn) if allow_guest: