Kaynağa Gözat

fixed V::quoteBashEcho

Piotr Labudda 8 yıl önce
ebeveyn
işleme
c066253b16
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      SE/se-lib/V.php

+ 1 - 1
SE/se-lib/V.php

@@ -448,7 +448,7 @@ EOF';
 	}
 
 	public static function quoteBashEcho($string) {
-		return str_replace('"', '\"', $string);
+		return str_replace([ '"', '$' ], [ '\"', '\$' ], $string);
 	}
 
 	public static function cloneArray($arr) {