Browse Source

Merge "Remove dangerous safestring declaration" into stable/newton

Jenkins 2 years ago
parent
commit
94c47c251e
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      openstack_dashboard/dashboards/identity/mappings/tables.py

+ 1
- 2
openstack_dashboard/dashboards/identity/mappings/tables.py View File

@@ -14,7 +14,6 @@
14 14
 
15 15
 import json
16 16
 
17
-from django.utils import safestring
18 17
 from django.utils.translation import ugettext_lazy as _
19 18
 from django.utils.translation import ungettext_lazy
20 19
 
@@ -75,7 +74,7 @@ def get_rules_as_json(mapping):
75 74
     rules = getattr(mapping, 'rules', None)
76 75
     if rules:
77 76
         rules = json.dumps(rules, indent=4)
78
-    return safestring.mark_safe(rules)
77
+    return rules
79 78
 
80 79
 
81 80
 class MappingsTable(tables.DataTable):

Loading…
Cancel
Save