﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5226	mediawiki-fckeditor error on (ajax) listing categories	fulgencio sanmartin		"On page FCKeditorSajax.body.php, function  wfSajaxSearchCategoryChildrenFCKeditor($m_root)
line 197
$m_root = str_replace(""'"",""\'"",$m_root);

it fails when a category (parameter m_root) has quotes, because it is submitted to this function after (line 204)
$res = $db->query($m_sql,__METHOD__ );

which quotes it again, becoming something like ""Gender\\'s issues"". 

The solution is pretty easy:
(line 200)
  $m_root = mysql_real_escape_string( $m_root );

which must be placed after the connection to the database. The previous one with str_replace can be removed."	Bug	closed	Normal		Project : MediaWiki+FCKeditor		invalid	HasPatch	
