Commit 2c6b8ba3 authored by Medicean's avatar Medicean

(Fix: Database) fix #151 (thx @miaochiahao)

parent a479f7c1
# 更新日志 # 更新日志
> 有空会补补BUG、添添新功能。 > 有空会补补BUG、添添新功能。
> 同时也欢迎大家的参与!感谢各位朋友的支持! .TAT. > 同时也欢迎大家的参与!感谢各位朋友的支持! .TAT.
## `v(2.0.7.3)
* 主窗口增加 CSP 策略
* Fix self-xss in database config #151 (thx @miaochiahao)
## `v(2.0.7.2)` ## `v(2.0.7.2)`
* Fix #150 文件路径输入框未过滤问题 * Fix #150 文件路径输入框未过滤问题
......
...@@ -139,7 +139,7 @@ class ASP { ...@@ -139,7 +139,7 @@ class ASP {
items.push({ items.push({
id: `conn::${_}`, id: `conn::${_}`,
// text: `${conf[_]['type']}:\/\/${conf[_]['user']}@${conf[_]['host']}`, // text: `${conf[_]['type']}:\/\/${conf[_]['user']}@${conf[_]['host']}`,
text: conf[_]['type'].toUpperCase(), text: antSword.noxss(conf[_]['type'].toUpperCase()),
im0: this.manager.list.imgs[0], im0: this.manager.list.imgs[0],
im1: this.manager.list.imgs[0], im1: this.manager.list.imgs[0],
im2: this.manager.list.imgs[0] im2: this.manager.list.imgs[0]
......
...@@ -124,7 +124,7 @@ class CUSTOM { ...@@ -124,7 +124,7 @@ class CUSTOM {
items.push({ items.push({
id: `conn::${_}`, id: `conn::${_}`,
// text: `${conf[_]['type']}:\/\/${conf[_]['user']}@${conf[_]['host']}`, // text: `${conf[_]['type']}:\/\/${conf[_]['user']}@${conf[_]['host']}`,
text: conf[_]['type'].toUpperCase(), text: antSword.noxss(conf[_]['type'].toUpperCase()),
im0: this.manager.list.imgs[0], im0: this.manager.list.imgs[0],
im1: this.manager.list.imgs[0], im1: this.manager.list.imgs[0],
im2: this.manager.list.imgs[0] im2: this.manager.list.imgs[0]
......
...@@ -251,7 +251,7 @@ class Database { ...@@ -251,7 +251,7 @@ class Database {
data_arr.push({ data_arr.push({
id: i+1, id: i+1,
data: [ data: [
func_mapping.hasOwnProperty(item[0]) ? func_mapping[item[0]] : item[0], func_mapping.hasOwnProperty(item[0]) ? func_mapping[item[0]] : antSword.noxss(item[0]),
parseInt(item[1]) === 1 ? "√" : "×", parseInt(item[1]) === 1 ? "√" : "×",
], ],
style: parseInt(item[1]) === 1 ? "background-color:#ADF1B9": "", style: parseInt(item[1]) === 1 ? "background-color:#ADF1B9": "",
......
...@@ -287,7 +287,7 @@ class PHP { ...@@ -287,7 +287,7 @@ class PHP {
for (let _ in conf) { for (let _ in conf) {
items.push({ items.push({
id: `conn::${_}`, id: `conn::${_}`,
text: `${conf[_]['type']}:\/\/${conf[_]['user']}@${conf[_]['host']}`, text: antSword.noxss(`${conf[_]['type']}:\/\/${conf[_]['user']}@${conf[_]['host']}`),
im0: this.manager.list.imgs[0], im0: this.manager.list.imgs[0],
im1: this.manager.list.imgs[0], im1: this.manager.list.imgs[0],
im2: this.manager.list.imgs[0] im2: this.manager.list.imgs[0]
......
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