mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
修复环境变量转义
This commit is contained in:
parent
03e6f18e54
commit
5dbfc65e7f
|
@ -168,7 +168,9 @@ export default class EnvService {
|
|||
.filter((x) => x.status !== EnvStatus.disabled)
|
||||
.map('value')
|
||||
.join('&')
|
||||
.replace(/"/g, '\"')
|
||||
.replace(/(\\)[^\n]/g, '\\\\')
|
||||
.replace(/(\\$)/, '\\\\')
|
||||
.replace(/"/g, '\\"')
|
||||
.trim();
|
||||
env_string += `export ${key}="${value}"\n`;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user