Ver Fonte

prevent xss

mizozobu há 7 anos atrás
pai
commit
5fddec8ecf
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/server/views/layout/layout.html

+ 1 - 1
src/server/views/layout/layout.html

@@ -247,7 +247,7 @@
 {% endblock %}
 
 <script type="application/json" id="crowi-context-hydrate">
-{{ local_config|json|safe }}
+{{ local_config|json|safe|preventXss }}
 </script>
 
 {% block custom_script %}