浏览代码

add escape html for description

Filip Marek 1 年之前
父节点
当前提交
1a8e1a2677
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      data/web/js/site/user.js

+ 4 - 1
data/web/js/site/user.js

@@ -205,7 +205,10 @@ jQuery(function($){
         {
           title: lang.description,
           data: 'description',
-          defaultContent: ''
+          defaultContent: '',
+          render: function (data, type) {
+            return escapeHtml(data);
+          }
         },
         {
           title: lang.alias_valid_until,