Opened 14 years ago

Closed 13 years ago

#5226 closed Bug (invalid)

mediawiki-fckeditor error on (ajax) listing categories

Reported by: fulgencio sanmartin Owned by:
Priority: Normal Milestone:
Component: Project : MediaWiki+FCKeditor Version:
Keywords: HasPatch Cc:


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.

Change History (2)

comment:1 Changed 14 years ago by Alfonso Martínez de Lizarrondo

Keywords: HasPatch added

comment:2 Changed 13 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

MediaWiki and FCKEditor are no longer supported. Closing the ticked as invalid.

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