diff --git a/includes/hostapd.php b/includes/hostapd.php index 4ff367a7..4314aaff 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -541,7 +541,7 @@ function SaveHostAPDConfig($wpa_array, $enc_types, $modes, $interfaces, $status) if (! in_array($_POST['interface'], $interfaces)) { // The user is probably up to something here but it may also be a // genuine error. - $status->addMessage('Unknown interface '.$_POST['interface'], 'danger'); + $status->addMessage('Unknown interface '.htmlspecialchars($_POST['interface'], ENT_QUOTES), 'danger'); $good_input = false; }