Commit 94f56fcf authored by Medicean's avatar Medicean

(Fix: FileManager) fix #150

parent 39bb4feb
# 更新日志 # 更新日志
> 有空会补补BUG、添添新功能。 > 有空会补补BUG、添添新功能。
> 同时也欢迎大家的参与!感谢各位朋友的支持! .TAT. > 同时也欢迎大家的参与!感谢各位朋友的支持! .TAT.
## `v(2.0.7.2)`
* Fix #150 文件路径输入框未过滤问题
* 修复目录树双击时引起console下报错问题
* 修正 aslistcmd 二次转义问题
## `v(2.0.7.1)` ## `v(2.0.7.1)`
......
...@@ -28,6 +28,7 @@ const antSword = window.antSword = { ...@@ -28,6 +28,7 @@ const antSword = window.antSword = {
noxss: (html = '', wrap = true) => { noxss: (html = '', wrap = true) => {
let _html = String(html) let _html = String(html)
.replace(/&/g, "&") .replace(/&/g, "&")
.replace(/'/g, "'")
.replace(/>/g, ">") .replace(/>/g, ">")
.replace(/</g, "&lt;") .replace(/</g, "&lt;")
.replace(/"/g, "&quot;"); .replace(/"/g, "&quot;");
......
...@@ -97,7 +97,7 @@ class Files { ...@@ -97,7 +97,7 @@ class Files {
options: bookmark_opts options: bookmark_opts
}, },
{ type: 'separator' }, { 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'] }, { id: 'read_path', type: 'button', icon: 'arrow-right', text: LANG['toolbar']['read'] },
{ type: 'separator' } { 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