修复了一个由版本更新日志显示导致的潜在远程代码执行攻击漏洞

This commit is contained in:
lyswhut
2021-01-27 19:20:29 +08:00
parent d6d6fae2ca
commit 269b14394d
4 changed files with 35 additions and 14 deletions
+1
View File
@@ -12,6 +12,7 @@
### 修复
- 修复快速切换歌曲时, 会出现播放的歌曲和界面展示的歌曲不一致的问题
- 修复了一个由版本更新日志显示导致的潜在远程代码执行攻击漏洞,该漏洞影响v1.6.1及之前的所有版本,请务必更新到最新版本
### 其他
+1 -1
View File
@@ -44,7 +44,7 @@ module.exports = async newVerNum => {
desc: version.desc,
})
version.version = newVerNum
version.desc = newChangeLog
version.desc = newMDChangeLog.replace(/(?:^|(\n))#{1,6} (.+)\n/g, '$1$2').trim()
pkg.version = newVerNum
console.log(chalk.blue('new version: ') + chalk.green(newVerNum))