mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-24 07:16:08 +08:00
修复环境变量转义
This commit is contained in:
parent
e07d2b6639
commit
c0d401e296
|
@ -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