From: <pau...@us...> - 2007-03-18 13:33:26
|
Revision: 941 http://svn.sourceforge.net/everydevel/?rev=941&view=rev Author: paul_the_nomad Date: 2007-03-16 17:27:32 -0700 (Fri, 16 Mar 2007) Log Message: ----------- FIX: xml parser test for whether data is 'defined' rather than whether it is true or not. 0 and '' (i.e.) zero and the empty string are valid data even though they are both 'not true'. The parsers must always take this into account. Modified Paths: -------------- trunk/ebase/lib/Everything/XML.pm Property Changed: ---------------- trunk/ebase/ Property changes on: trunk/ebase ___________________________________________________________________ Name: svk:merge - 16c2b9cb-492b-4d64-9535-64d4e875048d:/wip/ebase:947 a6810612-c0f9-0310-9d3e-a9e4af8c5745:/ebase/offline:17930 + 16c2b9cb-492b-4d64-9535-64d4e875048d:/wip/ebase:948 a6810612-c0f9-0310-9d3e-a9e4af8c5745:/ebase/offline:17930 Modified: trunk/ebase/lib/Everything/XML.pm =================================================================== --- trunk/ebase/lib/Everything/XML.pm 2007-03-17 00:27:13 UTC (rev 940) +++ trunk/ebase/lib/Everything/XML.pm 2007-03-17 00:27:32 UTC (rev 941) @@ -546,7 +546,7 @@ my $contents; $contents = $first->toString() if $first; - $contents ||= ''; + $contents = '' if not defined $contents; $contents = unMakeXmlSafe($contents); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |