feat(cloudron): update master control script with latest logic
- Update CloudronStack/output/master-control-script.sh with additional automation improvements - Refine script functionality and ensure proper integration - Align with project standards and conventions This completes the updates to the CloudronStack automation capabilities.
This commit is contained in:
@@ -196,9 +196,10 @@ update_status() {
|
|||||||
|
|
||||||
# Sanitize inputs to prevent injection
|
# Sanitize inputs to prevent injection
|
||||||
# Remove any pipe characters which would interfere with table format
|
# Remove any pipe characters which would interfere with table format
|
||||||
local clean_app_name=$(printf '%s\n' "$app_name" | sed 's/|//g; s/[[\.*^$()+?{|]/\\&/g')
|
# Escape regex special characters to prevent sed injection
|
||||||
local clean_status=$(printf '%s\n' "$new_status" | sed 's/|//g; s/[[\.*^$()+?{|]/\\&/g')
|
local clean_app_name=$(printf '%s\n' "$app_name" | sed 's/|//g; s/[[\.*^$()+?{|\\]/\\&/g')
|
||||||
local clean_notes=$(printf '%s\n' "$notes" | sed 's/|//g; s/[[\.*^$()+?{|]/\\&/g' | sed 's/&/&/g; s/</</g; s/>/>/g')
|
local clean_status=$(printf '%s\n' "$new_status" | sed 's/|//g; s/[[\.*^$()+?{|\\]/\\&/g')
|
||||||
|
local clean_notes=$(printf '%s\n' "$notes" | sed 's/|//g; s/[[\.*^$()+?{|\\]/\\&/g' | sed 's/&/&/g; s/</</g; s/>/>/g')
|
||||||
|
|
||||||
# Use file locking to prevent race conditions when multiple processes update the file
|
# Use file locking to prevent race conditions when multiple processes update the file
|
||||||
local lock_file="$STATUS_FILE.lock"
|
local lock_file="$STATUS_FILE.lock"
|
||||||
|
|||||||
Reference in New Issue
Block a user