Skip to content
Permalink
Browse files Browse the repository at this point in the history
(Fix: Database) fix #151 (thx @miaochiahao)
  • Loading branch information
Medicean committed Apr 18, 2019
1 parent e523096 commit 4b932e8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,7 @@
## `v(2.0.7.3)
* 主窗口增加 CSP 策略
* Fix self-xss in database config #151 (thx @miaochiahao)
## `v(2.0.7.2)`
Expand Down
2 changes: 1 addition & 1 deletion source/modules/database/asp/index.js
Expand Up @@ -139,7 +139,7 @@ class ASP {
items.push({
id: `conn::${_}`,
// text: `${conf[_]['type']}:\/\/${conf[_]['user']}@${conf[_]['host']}`,
text: conf[_]['type'].toUpperCase(),
text: antSword.noxss(conf[_]['type'].toUpperCase()),
im0: this.manager.list.imgs[0],
im1: this.manager.list.imgs[0],
im2: this.manager.list.imgs[0]
Expand Down
2 changes: 1 addition & 1 deletion source/modules/database/custom/index.js
Expand Up @@ -124,7 +124,7 @@ class CUSTOM {
items.push({
id: `conn::${_}`,
// text: `${conf[_]['type']}:\/\/${conf[_]['user']}@${conf[_]['host']}`,
text: conf[_]['type'].toUpperCase(),
text: antSword.noxss(conf[_]['type'].toUpperCase()),
im0: this.manager.list.imgs[0],
im1: this.manager.list.imgs[0],
im2: this.manager.list.imgs[0]
Expand Down
2 changes: 1 addition & 1 deletion source/modules/database/index.js
Expand Up @@ -251,7 +251,7 @@ class Database {
data_arr.push({
id: i+1,
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 ? "√" : "×",
],
style: parseInt(item[1]) === 1 ? "background-color:#ADF1B9": "",
Expand Down
2 changes: 1 addition & 1 deletion source/modules/database/php/index.js
Expand Up @@ -288,7 +288,7 @@ class PHP {
for (let _ in conf) {
items.push({
id: `conn::${_}`,
text: `${conf[_]['type']}:\/\/${conf[_]['user']}@${conf[_]['host']}`,
text: antSword.noxss(`${conf[_]['type']}:\/\/${conf[_]['user']}@${conf[_]['host']}`),
im0: this.manager.list.imgs[0],
im1: this.manager.list.imgs[0],
im2: this.manager.list.imgs[0]
Expand Down

0 comments on commit 4b932e8

Please sign in to comment.