From 91bda4e22585d3d6fbc01cc921df984971e810ca Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sun, 31 Mar 2019 23:25:57 -0400 Subject: [PATCH] quotation hell --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 477fdbb..e852f0d 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -636,8 +636,8 @@ function SaveTORAndVPNConfig(){ $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, $return"); + echo 'sudo /home/pi/loki-network/./lokilaunch.sh bootstrap "'.$bootstrap.'"'; + $output = shell_exec('sudo /home/pi/./loki-network/lokilaunch.sh bootstrap "'.$bootstrap.'"'); echo "
$output
"; }