diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-03-08 23:12:50 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-03-08 23:12:50 +0000 |
commit | 9f695b0fc818cb7c0762403979323af4ce5216c5 (patch) | |
tree | f1ec795f991e6c03e23a0302100a97c3e85e4a6e /etc | |
parent | b48a82c9f9a9b3c778a73713c1b6fd01fc04f755 (diff) | |
download | pfsense-9f695b0fc818cb7c0762403979323af4ce5216c5.zip pfsense-9f695b0fc818cb7c0762403979323af4ce5216c5.tar.gz |
Add skip white space. To avoid erroring out on accidental blank space.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/xmlparse.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc index c9720c0..7c5a554 100644 --- a/etc/inc/xmlparse.inc +++ b/etc/inc/xmlparse.inc @@ -166,6 +166,7 @@ function parse_xml_config_raw($cffile, $rootobj, $isstring = "false") { xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "cdata"); + xml_parser_set_option($xml_parser,XML_OPTION_SKIP_WHITE, 1); if (!($fp = fopen($cffile, "r"))) { die("Error: could not open XML input\n"); |