summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-03-23 10:18:55 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-03-23 10:18:55 -0300
commitcd94a9a8d9ea4ba99576da957e18c23472d59f85 (patch)
tree1e64bb663391476732588e833752ed27858ae70b /usr/local/www
parente2173e062b141acf8e6e45c775840c0fe433a3b2 (diff)
downloadpfsense-cd94a9a8d9ea4ba99576da957e18c23472d59f85.zip
pfsense-cd94a9a8d9ea4ba99576da957e18c23472d59f85.tar.gz
Add missing encoding, as suggested by yakar
Diffstat (limited to 'usr/local/www')
-rw-r--r--usr/local/www/getserviceproviders.php2
-rwxr-xr-xusr/local/www/graph.php2
-rw-r--r--usr/local/www/graph_cpu.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/getserviceproviders.php b/usr/local/www/getserviceproviders.php
index d720d14..b34e046 100644
--- a/usr/local/www/getserviceproviders.php
+++ b/usr/local/www/getserviceproviders.php
@@ -76,7 +76,7 @@ function providers_list($country) {
function provider_plan_data($country,$provider,$connection) {
header("Content-type: application/xml;");
- echo "<?xml version=\"1.0\" ?>\n";
+ echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<connection>\n";
$serviceproviders = get_country_providers($country);
foreach($serviceproviders as $sp) {
diff --git a/usr/local/www/graph.php b/usr/local/www/graph.php
index ce65a55..478bae4 100755
--- a/usr/local/www/graph.php
+++ b/usr/local/www/graph.php
@@ -102,7 +102,7 @@ if(file_exists("/usr/local/www/themes/{$g['theme']}/graph.php")) {
}
/********* Graph DATA **************/
-print('<?xml version="1.0" ?>' . "\n");?>
+print('<?xml version="1.0" encoding="UTF-8"?>' . "\n");?>
<svg width="100%" height="100%" viewBox="0 0 <?=$width?> <?=$height?>" preserveAspectRatio="none" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="init(evt)">
<g id="graph">
<rect id="bg" x1="0" y1="0" width="100%" height="100%" fill="white"/>
diff --git a/usr/local/www/graph_cpu.php b/usr/local/www/graph_cpu.php
index 200b9ea..ef3f22d 100644
--- a/usr/local/www/graph_cpu.php
+++ b/usr/local/www/graph_cpu.php
@@ -68,7 +68,7 @@ $height=100; // SVG internal height : do not modify
$width=200; // SVG internal width : do not modify
/********* Graph DATA **************/
-print('<?xml version="1.0" ?>' . "\n");?>
+print('<?xml version="1.0" encoding="UTF-8"?>' . "\n");?>
<svg width="100%" height="100%" viewBox="0 0 <?=$width?> <?=$height?>" preserveAspectRatio="none" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="init(evt);">
<g id="graph">
<rect id="bg" x1="0" y1="0" width="100%" height="100%" fill="white"/>
OpenPOWER on IntegriCloud