Opened 9 years ago

Closed 8 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 8 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 8 years ago by Jakub Ś (previous) (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy