Skip to content

Commit

Permalink
(Fix: Database) fix #151 (thx @miaochiahao)
Browse files Browse the repository at this point in the history
  • Loading branch information
Medicean committed Apr 18, 2019
1 parent a479f7c commit 2c6b8ba
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,12 @@
# 更新日志
> 有空会补补BUG、添添新功能。
> 同时也欢迎大家的参与!感谢各位朋友的支持! .TAT.
## `v(2.0.7.3)

* 主窗口增加 CSP 策略
* Fix self-xss in database config #151 (thx @miaochiahao)

## `v(2.0.7.2)`

* Fix #150 文件路径输入框未过滤问题
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 @@ -287,7 +287,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 2c6b8ba

Please sign in to comment.