mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-09 07:28:09 -05:00
fix: update comment for clarity on escaping special characters in replacement script
This commit is contained in:
@@ -10,7 +10,7 @@ fi
|
||||
|
||||
echo "Replacing pre-baked value.."
|
||||
|
||||
# Escape special characters in REPLACEMENT for sed to avoid regex issues and injection attacks
|
||||
# Escape special characters in REPLACEMENT for sed to avoid syntax errors
|
||||
ESCAPED_REPLACEMENT=$(printf '%s\n' "$REPLACEMENT" | sed 's/[\/&]/\\&/g')
|
||||
|
||||
# Replace in JS files in assets directory
|
||||
|
||||
Reference in New Issue
Block a user