diff --git a/back/services/env.ts b/back/services/env.ts index 9f4d7e2c..24217b5d 100644 --- a/back/services/env.ts +++ b/back/services/env.ts @@ -168,7 +168,7 @@ export default class EnvService { .filter((x) => x.status !== EnvStatus.disabled) .map('value') .join('&') - .replace(/(\\)[^\n]/g, '\\\\') + .replace(/(\\)[^n]/g, '\\\\') .replace(/(\\$)/, '\\\\') .replace(/"/g, '\\"') .trim(); diff --git a/docker/Dockerfile b/docker/Dockerfile index 295f6a8f..eab83eb8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -39,7 +39,7 @@ RUN set -x \ && echo "Asia/Shanghai" > /etc/timezone \ && git config --global user.email "qinglong@@users.noreply.github.com" \ && git config --global user.name "qinglong" \ - && git config http.postBuffer 524288000 \ + && git config --global http.postBuffer 524288000 \ && npm install -g pnpm \ && pnpm add -g pm2 ts-node typescript tslib \ && git clone -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \