diff options
author | Ermal <eri@pfsense.org> | 2010-05-20 19:37:47 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-05-20 19:38:05 +0000 |
commit | 02611466ce837a8148b4b5b1746ff63dd1862755 (patch) | |
tree | e1776cf5dedb0a75353df405bd9515c28e93e2cb /etc/inc/xmlparse.inc | |
parent | fa90d7013750b822001bdfcce224cbaf33d95f27 (diff) | |
download | pfsense-02611466ce837a8148b4b5b1746ff63dd1862755.zip pfsense-02611466ce837a8148b4b5b1746ff63dd1862755.tar.gz |
Do not aritificially add spaces around values on CDATA fields. Tested-by: Jim
Diffstat (limited to 'etc/inc/xmlparse.inc')
-rw-r--r-- | etc/inc/xmlparse.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc index 89c3a95..c19a3ae 100644 --- a/etc/inc/xmlparse.inc +++ b/etc/inc/xmlparse.inc @@ -257,7 +257,7 @@ function dump_xml_config_sub($arr, $indent) { if(($cval === true) || ($cval === "")) { $xmlconfig .= "<$ent/>\n"; } else if (substr($ent, 0, 5) == "descr") { - $xmlconfig .= "<$ent><![CDATA[ " . htmlentities($cval) . " ]]></$ent>\n"; + $xmlconfig .= "<$ent><![CDATA[" . htmlentities($cval) . "]]></$ent>\n"; } else { $xmlconfig .= "<$ent>" . htmlentities($cval) . "</$ent>\n"; } @@ -282,7 +282,7 @@ function dump_xml_config_sub($arr, $indent) { } else if (!is_bool($val)) { $xmlconfig .= str_repeat("\t", $indent); if (substr($ent, 0, 5) == "descr") - $xmlconfig .= "<$ent><![CDATA[ " . htmlentities($val) . " ]]></$ent>\n"; + $xmlconfig .= "<$ent><![CDATA[" . htmlentities($val) . "]]></$ent>\n"; else $xmlconfig .= "<$ent>" . htmlentities($val) . "</$ent>\n"; } |