Browse Source

Quotes variables for `is_common_format_valid` (#5218)

Ensures that the variables passed to the
`is_common_format_valid` function are properly quoted.
This resolves potential issues arising from whitespace
or special characters within the variable values,
preventing unexpected behavior or errors during validation.
Jaap Marcus 1 month ago
parent
commit
3b91cac9c9
1 changed files with 4 additions and 4 deletions
  1. 4 4
      bin/v-generate-ssl-cert

+ 4 - 4
bin/v-generate-ssl-cert

@@ -75,10 +75,10 @@ fi
 args_usage='DOMAIN EMAIL COUNTRY STATE CITY ORG UNIT [ALIASES] [FORMAT]'
 check_args '7' "$#" "$args_usage"
 is_format_valid 'domain' 'aliases' 'format' 'email'
-is_common_format_valid $country "country"
-is_common_format_valid $state "state"
-is_common_format_valid $org "org"
-is_common_format_valid $unit "unit"
+is_common_format_valid "$country" "country"
+is_common_format_valid "$state" "state"
+is_common_format_valid "$org" "org"
+is_common_format_valid "$unit" "unit"
 
 release="$(lsb_release -s -r)"