1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02: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:
D9ping 2018-10-24 01:42:47 +02:00
parent d9b2d20e28
commit 54e55775ea
2 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@ function DisplayWPAConfig(){
<?php if (array_key_exists('priority', $network)) { ?> <?php if (array_key_exists('priority', $network)) { ?>
<input type="hidden" name="priority<?php echo $index ?>" value="<?php echo htmlspecialchars($network['priority'], ENT_QUOTES); ?>" /> <input type="hidden" name="priority<?php echo $index ?>" value="<?php echo htmlspecialchars($network['priority'], ENT_QUOTES); ?>" />
<?php } ?> <?php } ?>
<input type="hidden" name="protocol<?php echo $index ?>" value="<?php echo htmlspecialchars($network['protocol'], ENT_QUOTES); ?>" /><?php echo htmlspecialchars($network['protocol'], ENT_QUOTES); ?> <input type="hidden" name="protocol<?php echo $index ?>" value="<?php echo htmlspecialchars($network['protocol'], ENT_QUOTES); ?>" /><?php echo $network['protocol']; ?>
</td> </td>
<?php if ($network['protocol'] === 'Open') { ?> <?php if ($network['protocol'] === 'Open') { ?>
<td><input type="hidden" name="passphrase<?php echo $index ?>" value="" />---</td> <td><input type="hidden" name="passphrase<?php echo $index ?>" value="" />---</td>

View File

@ -175,9 +175,9 @@ function ConvertToSecurity( $security ) {
$protocol = $protocol_match[1]; $protocol = $protocol_match[1];
$matchArr = explode('-', $match); $matchArr = explode('-', $match);
if (count($matchArr) > 2) { if (count($matchArr) > 2) {
$options[] = $protocol . ' ('. $matchArr[2] .')'; $options[] = htmlspecialchars($protocol . ' ('. $matchArr[2] .')', ENT_QUOTES);
} else { } else {
$options[] = $protocol; $options[] = htmlspecialchars($protocol, ENT_QUOTES);
} }
} }
} }