-
-
Notifications
You must be signed in to change notification settings - Fork 28
Fixed installer not correctly wrapping values in .env.
#1972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe Env utility’s formatValueForDotenv now quotes values containing whitespace or specified special characters. Escaping of backslashes and double quotes is retained. Unit tests were expanded and reorganized to cover emails, URLs, shell-special characters, combinations with whitespace, and edge cases. No public interfaces changed. Changes
Sequence Diagram(s)sequenceDiagram
participant C as Caller
participant E as Env::formatValueForDotenv
C->>E: formatValueForDotenv(value)
alt contains whitespace or special chars
note over E: Special chars include #, $, !, ;, &, |, >, <, *, ?, (, ), {, }, [, ], `, ', "
E->>E: Escape backslashes and double quotes
E-->>C: Return "escaped_value"
else no matches
E-->>C: Return value unchanged
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 phpcs (3.7.2).vortex/installer/src/Utils/Env.phpERROR: Referenced sniff "Drupal" does not exist Run "phpcs --help" for usage information .vortex/installer/tests/Unit/EnvTest.phpERROR: Referenced sniff "Drupal" does not exist Run "phpcs --help" for usage information 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (14)
🔇 Additional comments (5)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1972 +/- ##
========================================
Coverage 77.69% 77.69%
========================================
Files 90 90
Lines 5550 5550
Branches 44 44
========================================
Hits 4312 4312
Misses 1238 1238 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit