mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Fix incorrect escaping break lines of WPA and WPA2 secured networks.
Signed-off-by: D9ping <D9ping@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user