more passing argument to shell changes

pull/15/head
necro-nemesis 7 years ago
parent c7041ab70a
commit cbc8878980

@ -634,8 +634,8 @@ function SaveTORAndVPNConfig(){
</div>
<?php
//echo "lokinet-bootstrap ", $bootstrap;
$escapedArgumment = escapeshellarg($bootstrap);
$output = shell_exec( "sudo /home/pi/loki-network/lokilaunch.sh bootstrap $bootstrap" );
$bootstrap = escapeshellarg($bootstrap);
$output = shell_exec("sudo /home/pi/loki-network/lokilaunch.sh bootstrap {$bootstrap}");
echo "<pre>$output</pre>";
}

Loading…
Cancel
Save