Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: update comment for clarity on escaping special characters in replacement script

Victor Santos64f566076bc8
diff --git a/frontend/scripts/replace-standalone-build-variable.sh b/frontend/scripts/replace-standalone-build-variable.sh
index 2e7360a10a..5b1c4a27f7 100755
--- a/frontend/scripts/replace-standalone-build-variable.sh
+++ b/frontend/scripts/replace-standalone-build-variable.sh
@@ -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