diff options
author | k-paulius <k.dash.paulius@gmail.com> | 2016-02-14 13:47:32 -0600 |
---|---|---|
committer | k-paulius <k.dash.paulius@gmail.com> | 2016-02-14 13:47:32 -0600 |
commit | d49d6033b73bba1b38a0fdf285b90a70a5696b9c (patch) | |
tree | 39413a0a257abaca732c03865ee317cb9ce4cfaa /src/usr/local/www/diag_smart.php | |
parent | 8f1ab2a45cfbf0b509fb9c54830f4ce3fb125ad1 (diff) | |
download | pfsense-d49d6033b73bba1b38a0fdf285b90a70a5696b9c.zip pfsense-d49d6033b73bba1b38a0fdf285b90a70a5696b9c.tar.gz |
Perform HTML entity translation where & is used
Diffstat (limited to 'src/usr/local/www/diag_smart.php')
-rw-r--r-- | src/usr/local/www/diag_smart.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/diag_smart.php b/src/usr/local/www/diag_smart.php index 91f18f1..85ed8bd 100644 --- a/src/usr/local/www/diag_smart.php +++ b/src/usr/local/www/diag_smart.php @@ -70,7 +70,7 @@ $action = (isset($_POST['action']) ? $_POST['action'] : $_GET['action']); $pgtitle = array(gettext("Diagnostics"), gettext("S.M.A.R.T. Status")); if ($action != 'config') { - $pgtitle[] = gettext('Information & Tests'); + $pgtitle[] = htmlspecialchars(gettext('Information & Tests')); } else { $pgtitle[] = gettext('Config'); } @@ -122,7 +122,7 @@ if (!file_exists('/dev/' . $targetdev)) { } $tab_array = array(); -$tab_array[0] = array(gettext("Information & Tests"), ($action != 'config'), $_SERVER['PHP_SELF'] . "?action=default"); +$tab_array[0] = array(htmlspecialchars(gettext("Information & Tests")), ($action != 'config'), $_SERVER['PHP_SELF'] . "?action=default"); $tab_array[1] = array(gettext("Config"), ($action == 'config'), $_SERVER['PHP_SELF'] . "?action=config"); display_top_tabs($tab_array); |