From: Antoine Musso Date: Wed, 9 Jun 2004 19:53:13 +0000 (+0000) Subject: fix bug 969826 related to single to double quotes X-Git-Tag: 1.5.0alpha1~2955 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=8f430cc78a60b2a20f36c076d3209bce68c16690;p=lhc%2Fweb%2Fwiklou.git fix bug 969826 related to single to double quotes --- diff --git a/includes/Article.php b/includes/Article.php index 1e47445a6a..54ab726228 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1375,7 +1375,7 @@ class Article { $use_index=$wgIsMySQL?"USE INDEX (name_title_timestamp)":""; $sql = 'SELECT old_text,old_user,old_user_text,old_timestamp,old_flags ' . - 'FROM old {$use_index}' . + "FROM old {$use_index}" . "WHERE old_namespace={$n} AND old_title='{$tt}'" . "AND (old_user <> {$uid} OR old_user_text <> '{$ut}')" . 'ORDER BY inverse_timestamp LIMIT 1';