IceWhaleTech / CasaOS

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
https://casaos.io
Apache License 2.0
26.17k stars 1.42k forks source link

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

Open LSP0123 opened 2 months ago

LSP0123 commented 2 months ago

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