Opened 14 years ago

Closed 12 years ago

#5443 closed Bug (invalid)

Infinite loop possible in wfSajaxSearchCategoryChildrenFCKeditor()

Reported by: peter_venkman Owned by:
Priority: Normal Milestone:
Component: Project : MediaWiki+FCKeditor Version:
Keywords: Cc:


details at the mwusers forum:

If you have a category that belongs to itself, there is an infinite loop that occurs in wfSajaxSearchCategoryChildrenFCKeditor(). Add the line "if ($m_root == $row->title) continue;" to the while loop after the database call is returned to avoid endless recursion:

while ( ( $row = $dbr->fetchObject( $res ) ) ) {

if ($m_root == $row->title) continue; $ret .= $row->title . "\n"; $sub = explode( "\n", wfSajaxSearchCategoryChildrenFCKeditor( $row->title ) ); foreach( $sub as $subrow )

if( strlen( $subrow ) > 0 )

$ret.= ' ' . $subrow . "\n";


Change History (1)

comment:1 Changed 12 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

FCKeditor was retired and is no longer supported. All active development was moved to its successor, CKEditor 3.x, that is a fully mature and far superior product. We recommend you upgrade as soon as possible.

Last edited 12 years ago by Jakub Ś (previous) (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy