Project

General

Profile

« Previous | Next » 

Revision acbab51a

Added by Renato Botelho over 11 years ago

Use htmlspecialchars(), a better solution for #2952

View differences:

usr/local/www/system_firmware_check.php
181 181
	$txt .= "  " . gettext("NanoBSD Size") . " : " . trim(file_get_contents("/etc/nanosize.txt")) . "\\n";
182 182
}
183 183
$txt .= "       " . gettext("Built On") .": ".  $current_installed_buildtime . "\\n";
184
$txt .= "    " . gettext("New version") .": ".  addslashes($remote_version) . "\\n\\n";
184
$txt .= "    " . gettext("New version") .": ".  htmlspecialchars($remote_version, ENT_QUOTES | ENT_HTML401). "\\n\\n";
185 185
$txt .= "  " . gettext("Update source") .": ".  $updater_url . "\\n";
186 186
update_output_window($txt);
187 187
?>

Also available in: Unified diff