In the function wfElement( $element, $attribs = null, $contents = '') in
includes/XmlFunctions.php incorrectly checks if the content is empty:
if( $contents == '' ) {
It should be ===, otherwise when $content is integer 0, that line gives a false
positive.
Version: 1.7.x
Severity: normal