Explorar el Código

fixed V::quoteBashEcho

Piotr Labudda hace 8 años
padre
commit
c066253b16
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {
 	public static function quoteBashEcho($string) {
-		return str_replace('"', '\"', $string);
+		return str_replace([ '"', '$' ], [ '\"', '\$' ], $string);
 	}
 	}
 
 
 	public static function cloneArray($arr) {
 	public static function cloneArray($arr) {