summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorN0YB <Al_Stu@Frontier.com>2014-02-17 09:52:43 -0800
committerN0YB <Al_Stu@Frontier.com>2014-02-17 09:52:43 -0800
commitfe672816e24f91fd0aa183d2606f1f53aa178f74 (patch)
treec0a067a356a12cb7bdf6a76853d85aae0b27f730 /usr
parent838e1f6342b42c52e21d11942e35561c25194c1d (diff)
downloadpfsense-fe672816e24f91fd0aa183d2606f1f53aa178f74.zip
pfsense-fe672816e24f91fd0aa183d2606f1f53aa178f74.tar.gz
XHTML Compliance
RRD Graphs Update Use CDATA section instead of clunky decode hex value for ampersand in script.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/status_rrd_graph.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index f00ca8a..9214c48 100755
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -649,9 +649,9 @@ function get_dates($curperiod, $graph) {
<tr>
<td colspan="2" class="list">
<script type="text/javascript">
+// <![CDATA[
function update_graph_images() {
//alert('updating');
- var amp = decodeURIComponent("%26");
var randomid = Math.floor(Math.random()*11);
<?php
foreach($graphs as $graph) {
@@ -714,13 +714,14 @@ function get_dates($curperiod, $graph) {
$id = preg_replace('/\./', '_', $id);
echo "\n";
- echo "\t\tjQuery('#{$id}').attr('src','status_rrd_graph_img.php?start={$start}' + amp + 'graph={$graph}' + amp + 'database={$curdatabase}' + amp + 'style={$curstyle}' + amp + 'tmp=' + randomid);\n";
+ echo "\t\tjQuery('#{$id}').attr('src','status_rrd_graph_img.php?start={$start}&graph={$graph}&database={$curdatabase}&style={$curstyle}&tmp=' + randomid);\n";
}
}
?>
window.setTimeout('update_graph_images()', 355000);
}
window.setTimeout('update_graph_images()', 355000);
+// ]]>
</script>
</td>
</tr>
OpenPOWER on IntegriCloud