Commit 58afe3ac authored by Medicean's avatar Medicean

Merge branch 'master' into v2.1.x

parents 0c44bbc7 94f56fcf
# 更新日志
> 有空会补补BUG、添添新功能。
> 同时也欢迎大家的参与!感谢各位朋友的支持! .TAT.
## `v(2.0.7.2)`
* Fix #150 文件路径输入框未过滤问题
* 修复目录树双击时引起console下报错问题
* 修正 aslistcmd 二次转义问题
## `v(2.0.7.1)`
......
......@@ -28,6 +28,7 @@ const antSword = window.antSword = {
noxss: (html = '', wrap = true) => {
let _html = String(html)
.replace(/&/g, "&")
.replace(/'/g, "'")
.replace(/>/g, ">")
.replace(/</g, "&lt;")
.replace(/"/g, "&quot;");
......
......@@ -97,7 +97,7 @@ class Files {
options: bookmark_opts
},
{ type: 'separator' },
{ id: 'path', width: 300, type: 'buttonInput', value: manager.path || 'loading..' },
{ id: 'path', width: 300, type: 'buttonInput', value: antSword.noxss(manager.path) || 'loading..' },
{ id: 'read_path', type: 'button', icon: 'arrow-right', text: LANG['toolbar']['read'] },
{ type: 'separator' }
]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment