summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2015-11-29 18:23:07 +0000
committerColin Fleming <cj_fleming@sky.com>2015-11-29 18:23:07 +0000
commit8fd9052f364f7c0d10d8244f3c1456c67baecc6d (patch)
tree7c49291e368a677d6be225d7f0375f6ce0bf7c63 /src/etc/inc/pfsense-utils.inc
parentcbe639a8a2575b3148c9b5069be78b0a89b3b429 (diff)
downloadpfsense-8fd9052f364f7c0d10d8244f3c1456c67baecc6d.zip
pfsense-8fd9052f364f7c0d10d8244f3c1456c67baecc6d.tar.gz
Type up SCRIPT tags
Diffstat (limited to 'src/etc/inc/pfsense-utils.inc')
-rw-r--r--src/etc/inc/pfsense-utils.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc
index df2cb32..775f9a7 100644
--- a/src/etc/inc/pfsense-utils.inc
+++ b/src/etc/inc/pfsense-utils.inc
@@ -1791,9 +1791,11 @@ function update_output_window($text) {
$log = preg_replace("/\n/", "\\n", $text);
if ($pkg_interface != "console") {
?>
-<script>
+<script type="text/javascript">
+//<![CDATA[
document.getElementById("output").textContent="<?=htmlspecialchars($log)?>";
document.getElementById("output").scrollTop = document.getElementById("output").scrollHeight;
+//]]>
</script>
<?php
}
@@ -1824,7 +1826,11 @@ function update_progress_bar($percent, $first_time) {
$percent = 1;
}
if ($pkg_interface <> "console") {
- echo '<script>document.getElementById("progressbar").style.width="'. $percent.'%";</script>';
+ echo '<script type="text/javascript">';
+ echo "\n//<![CDATA[\n";
+ echo 'document.getElementById("progressbar").style.width="'. $percent.'%";'
+ echo "\n//]]>\n";
+ echo '</script>';
} else {
if (!($first_time)) {
echo "\x08\x08\x08\x08\x08";
OpenPOWER on IntegriCloud