From 54e55775ea586e19cd3e58a1e7c688bd87c8d88f Mon Sep 17 00:00:00 2001 From: D9ping Date: Wed, 24 Oct 2018 01:42:47 +0200 Subject: [PATCH] Fix incorrect escaping break lines of WPA and WPA2 secured networks. Signed-off-by: D9ping --- includes/configure_client.php | 2 +- includes/functions.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/configure_client.php b/includes/configure_client.php index 7121ad75..f13f6917 100755 --- a/includes/configure_client.php +++ b/includes/configure_client.php @@ -203,7 +203,7 @@ function DisplayWPAConfig(){ - + --- diff --git a/includes/functions.php b/includes/functions.php index 98a2d691..8e4050f5 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -175,9 +175,9 @@ function ConvertToSecurity( $security ) { $protocol = $protocol_match[1]; $matchArr = explode('-', $match); if (count($matchArr) > 2) { - $options[] = $protocol . ' ('. $matchArr[2] .')'; + $options[] = htmlspecialchars($protocol . ' ('. $matchArr[2] .')', ENT_QUOTES); } else { - $options[] = $protocol; + $options[] = htmlspecialchars($protocol, ENT_QUOTES); } } }