diff --git a/ajax/networking/get_ip_summary.php b/ajax/networking/get_ip_summary.php index cd42f575..810c6265 100644 --- a/ajax/networking/get_ip_summary.php +++ b/ajax/networking/get_ip_summary.php @@ -5,6 +5,7 @@ include_once('../../includes/functions.php'); if(isset($_POST['interface']) && isset($_POST['csrf_token']) && CSRFValidate()) { $int = preg_replace('/[^a-z0-9]/','',$_POST['interface']); exec('ip a s '.$int,$intOutput,$intResult); + $intOutput = array_map('htmlentities', $intOutput); $jsonData = ['return'=>$intResult,'output'=>$intOutput]; echo json_encode($jsonData); } else { diff --git a/includes/networking.php b/includes/networking.php index 364e3e35..9b728d06 100755 --- a/includes/networking.php +++ b/includes/networking.php @@ -44,7 +44,9 @@ function DisplayNetworkingConfig() echo '