Fixes from Cerberus and other development

This commit is contained in:
DarkFeather
2017-03-01 08:31:47 -06:00
parent 870b8c6715
commit 60de762c8b
6 changed files with 190 additions and 13 deletions

View File

@@ -20,9 +20,8 @@ namespace AniNIX.Shared {
/// </summary>
public static String Run(String command, String input) {
//Sanitize inputs.
if (command.Contains("\'")) {
throw new Exception("Command strings cannot include \'.");
}
command = command.Replace("\\'","'").Replace("'","\\'");
//Create process.
Process proc = new Process();