mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 15:20:40 +00:00
fix(env): skip escaping for valid JSON in environment variables (#6160)
Prevent double-escaping of COMPOSER_AUTH and other JSON environment variables by detecting valid JSON objects/arrays in realValue() and skipping quote escaping entirely. This fixes broken JSON values passed to runtime services while maintaining proper escaping for non-JSON values. - Add JSON detection before escaping logic in EnvironmentVariable::realValue() - JSON objects/arrays pass through unmodified, avoiding quote corruption - Add comprehensive test coverage for JSON vs non-JSON escaping behavior
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user