summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_filter_reload.php
diff options
context:
space:
mode:
authorN0YB <Al_Stu@Frontier.com>2014-02-16 23:22:50 -0800
committerN0YB <Al_Stu@Frontier.com>2014-02-16 23:22:50 -0800
commit4c0c53650144893cfc862a81f93d70f31dedf94d (patch)
treef0ace607205feb63681efe180fbf13a5e4965b7c /usr/local/www/status_filter_reload.php
parent6aa8b0deecaa3156538896003040459648c3e0fa (diff)
downloadpfsense-4c0c53650144893cfc862a81f93d70f31dedf94d.zip
pfsense-4c0c53650144893cfc862a81f93d70f31dedf94d.tar.gz
XHTML Compliance
Filter Reload Status Mark script as CDATA section to avoid expansion of the begin tag entity (&lt;).
Diffstat (limited to 'usr/local/www/status_filter_reload.php')
-rw-r--r--usr/local/www/status_filter_reload.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/local/www/status_filter_reload.php b/usr/local/www/status_filter_reload.php
index 1ea3e4f..b4984aa 100644
--- a/usr/local/www/status_filter_reload.php
+++ b/usr/local/www/status_filter_reload.php
@@ -90,33 +90,34 @@ include("head.inc");
<script type="text/javascript">
+//<![CDATA[
/* init update "thread */
function update_status_thread() {
getURL('status_filter_reload.php?getstatus=true', update_data);
}
function update_data(obj) {
- var lt = decodeURIComponent("%3C");
var result_text = obj.content;
var result_text_split = result_text.split("|");
result_text = result_text_split[1];
result_text = result_text.replace("\n","");
result_text = result_text.replace("\r","");
if (result_text) {
- jQuery('#status').html(lt+'img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt=""/> ' + result_text + '...');
+ jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt="" /> ' + result_text + '...');
} else {
- jQuery('#status').html(lt+'img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt=""/> Obtaining filter status...');
+ jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt="" /> Obtaining filter status...');
}
if(result_text == "Initializing") {
- jQuery('#status').html(lt+'img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt=""/> Initializing...');
+ jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt="" /> Initializing...');
} else if(result_text == "Done") {
jQuery('#status').effect('highlight');
jQuery('#status').html('Done. The filter rules have been reloaded.');
jQuery('#reloadinfo').css("visibility","hidden");
jQuery('#doneurl').css("visibility","visible");
- jQuery('#doneurl').html(lt+"p/>"+lt+"a href='status_queues.php'>Queue Status"+lt+"/a>");
+ jQuery('#doneurl').html("<p/><a href='status_queues.php'>Queue Status</a>");
}
window.setTimeout('update_status_thread()', 2500);
}
+//]]>
</script>
<script type="text/javascript">
OpenPOWER on IntegriCloud