move escapeshell to after trim

pull/15/head
necro-nemesis 6 years ago
parent 91c298784c
commit b9db8f3ebb

@ -633,9 +633,9 @@ function SaveTORAndVPNConfig(){
Applying Bootstrap
</div>
<?php
$bootstrap = escapeshellarg($bootstrap);
$bootstrap=str_replace("'", "", $bootstrap);
$bootstrap=htmlspecialchars($bootstrap);
$bootstrap = escapeshellarg($bootstrap);
echo "sudo /home/pi/loki-network/./lokilaunch.sh bootstrap $bootstrap";
$output = shell_exec("sudo /home/pi/./loki-network/lokilaunch.sh bootstrap $bootstrap");
echo "<pre>$output</pre>";

Loading…
Cancel
Save