Przeglądaj źródła

fixed V::quoteBashEcho

Piotr Labudda 8 lat temu
rodzic
commit
c066253b16
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {