Last modified: 2006-04-18 20:58:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 5646 - XmlFunctions.wfElement() incorrectly checks $contents for emptiness (with Fix)
XmlFunctions.wfElement() incorrectly checks $contents for emptiness (with Fix)
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.7.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-04-18 20:29 UTC by Yuri Astrakhan
Modified: 2006-04-18 20:58 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Yuri Astrakhan 2006-04-18 20:29:07 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links