Opened 15 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: |
Description
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 15 years ago by
Keywords: | HasPatch added |
---|
comment:2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
MediaWiki and FCKEditor are no longer supported. Closing the ticked as invalid.