clean out ascii color characters from lokinet-bootstrapping.

pull/38/head
glen 5 years ago
parent a226e519dd
commit 14d696f408

@ -673,6 +673,7 @@ function SaveTORAndVPNConfig()
<?php
$bootstrap = $_POST['lokinetbootstrap'];
$bootstrap=str_replace("'", "", $bootstrap);
$output = preg_replace('#\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $output);
$output = shell_exec('sudo /var/lib/lokinet/lokilaunch.sh bootstrap '.$bootstrap.'');
echo "<pre><strong>$output</strong></pre>";
}

Loading…
Cancel
Save