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/dist/css/custom.css b/dist/css/custom.css index be1b60d1..8901c950 100644 --- a/dist/css/custom.css +++ b/dist/css/custom.css @@ -54,6 +54,12 @@ height:300px; } +pre.unstyled { + border-width: 0; + background-color: transparent; + padding: 0; +} + .dhcp-static-leases { margin-top: 1em; margin-bottom: 1em; @@ -62,4 +68,4 @@ .dhcp-static-lease-row { margin-top: 0.5em; margin-bottom: 0.5em; -} \ No newline at end of file +} 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 '
'.htmlspecialchars($interface, ENT_QUOTES).'
-
+
+

+                                
'; }