diff options
author | Vinicius Coque <vcoque@gmail.com> | 2011-11-20 14:30:18 -0200 |
---|---|---|
committer | Vinicius Coque <vcoque@gmail.com> | 2011-11-21 19:43:10 -0200 |
commit | 5d0d5eb08e31da9ff4568a451cbeaccddd7ad0e0 (patch) | |
tree | dec0b972c53e23ba627f2c4dcbd8bf8e259e7742 /usr/local/www/widgets | |
parent | c377a909d612e4da6ce93e8e628ef48e6eec5660 (diff) | |
download | pfsense-5d0d5eb08e31da9ff4568a451cbeaccddd7ad0e0.zip pfsense-5d0d5eb08e31da9ff4568a451cbeaccddd7ad0e0.tar.gz |
Fix errors caused by javascript code processed by jquery .html() method.
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r-- | usr/local/www/widgets/widgets/system_information.widget.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php index 77d556b..cab80a5 100644 --- a/usr/local/www/widgets/widgets/system_information.widget.php +++ b/usr/local/www/widgets/widgets/system_information.widget.php @@ -266,7 +266,9 @@ $curcfg = $config['system']['firmware']; }); } function activitycallback(transport) { - jQuery('#updatestatus').html(transport.responseText); + // .html() method process all script tags contained in responseText, + // to avoid this we set the innerHTML property + jQuery('#updatestatus').prop('innerHTML',transport.responseText); } function swapuname() { jQuery('#uname').html("<?php echo php_uname("a"); ?>"); |