Skip to content

[Bug] The $ in Environment Variables becomes doubled,every time you save setting #1988

Description

@LSP0123

Describe the bug

A clear and concise description of what the bug is.

The $ in Environment Variables becomes doubled,every time you save setting

Steps to reproduce the behavior:

eg: depoly ghcr.io/wg-easy/wg-easy
1.set it on webui like below:
PASSWORD_HASH=$2a$12$zBIMbL5/axcluAruNwKziuRCvJCVeh0xrKB1wT7qEoOH95g2L2p4G
image
2.save setting. casaos will auto fix $ to $$ . it's good。 like this
image
3.save again,$$ was auto change to $$$$ it will be like this
image

Expected behavior

$ should not be double again when user save it again

I think the webui should only save that what user input .

When the user saves, the program generates app.yaml based on the user's input

update

set Value with " that is no use. casaos will auto remove " and change $$ to $$$$ when i save it
image
it's no use

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions