Opened 15 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";
}
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.