Kaynağa Gözat

Fix for Sed Injection Vulnerability

Thanks to @hestiacp and @jaapmarcus for fix.
Anton Reutov 3 yıl önce
ebeveyn
işleme
d386c3598c
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      bin/v-change-sys-config-value

+ 1 - 0
bin/v-change-sys-config-value

@@ -28,6 +28,7 @@ PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
 check_args '2' "$#" 'KEY VALUE'
 is_format_valid 'key'
 
+format_no_quotes "$value" 'value'
 
 #----------------------------------------------------------#
 #                       Action                             #