diff --git a/lib/github-manager.php b/lib/github-manager.php index 5bd882a..1598101 100644 --- a/lib/github-manager.php +++ b/lib/github-manager.php @@ -72,7 +72,7 @@ if (!$demoMode && isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] && isset // Add the new one if ($_POST['githubLocalPathNEW'] != "" && $_POST['githubRemotePathNEW'] != "") { - $settingsNew .= '"'.$_POST['githubLocalPathNEW'].'",'; + $settingsNew .= '"'.xssClean($_POST['githubLocalPathNEW'],"html").'",'; } // Then set all the old local paths @@ -88,7 +88,7 @@ if (!$demoMode && isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] && isset // Add the new one if ($_POST['githubLocalPathNEW'] != "" && $_POST['githubRemotePathNEW'] != "") { - $settingsNew .= '"'.$_POST['githubRemotePathNEW'].'",'; + $settingsNew .= '"'.xssClean($_POST['githubRemotePathNEW'],"html").'",'; } // Then set all the old remote paths @@ -113,7 +113,7 @@ if (!$demoMode && isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] && isset // Redo the arrays using the form data for ($i=0; $i