Opened 14 years ago

Closed 13 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:

Description

details at the mwusers forum: http://www.mwusers.com/forums/showthread.php?14529-FCKeditor-extension-broken-category-links&p=48246

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 13 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

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

Version 0, edited 13 years ago by Jakub Ś (next)
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