-
-
Notifications
You must be signed in to change notification settings - Fork 638
Closed
Description
Summary
Update system calls in lib/react_on_rails/dev/pack_generator.rb to use the safer array form instead of string form.
Details
The current implementation uses string-based system calls which are less safe:
system "bundle exec rake react_on_rails:generate_packs > /dev/null 2>&1"
system "bundle exec rake react_on_rails:generate_packs"These should be updated to use the array form for better security and cross-platform compatibility.
Related Branch
This fix was identified in the justin808/shakapacker-9.3.0 branch (commit 7f902cf).
Impact
- Security/safety improvement
- Better cross-platform compatibility
- Prevents potential shell injection issues
Files Changed
lib/react_on_rails/dev/pack_generator.rb(2 lines changed)
Labels
- Easy
- Bug
coderabbitai