Skip to content
Permalink
Browse files Browse the repository at this point in the history
Encode error output in services_captiveportal_mac.php. Fixes #9609
  • Loading branch information
jim-p committed Jul 1, 2019
1 parent bb1692e commit d31362b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/usr/local/www/services_captiveportal_mac.php
Expand Up @@ -89,7 +89,7 @@
if (!empty($mac)) {
$_POST['delmac'] = $mac['mac'];
} else {
echo gettext("No entry exists for this username:") . " " . $_POST['username'] . "\n";
echo gettext("No entry exists for this username:") . " " . htmlspecialchars($_POST['username']) . "\n";
}
}

Expand All @@ -112,7 +112,7 @@
write_config();
echo gettext("The entry was successfully deleted") . "\n";
} else {
echo gettext("No entry exists for this mac address:") . " " . $_POST['delmac'] . "\n";
echo gettext("No entry exists for this mac address:") . " " . htmlspecialchars($_POST['delmac']) . "\n";
}
}
exit;
Expand Down

0 comments on commit d31362b

Please sign in to comment.