Index: trunk/phase3/includes/Title.php |
— | — | @@ -902,7 +902,9 @@ |
903 | 903 | # Fixing category links (those without piped 'alternate' names) to be sorted under the new title |
904 | 904 | |
905 | 905 | $dbw =& wfGetDB( DB_MASTER ); |
906 | | - $sql = "UPDATE categorylinks SET cl_sortkey=\"" . $nt->getPrefixedText() . "\" WHERE cl_from=\"" .$this->getArticleID() . "\" AND cl_sortkey=\"" . $this->getPrefixedText() . "\"" ; |
| 906 | + $sql = "UPDATE categorylinks SET cl_sortkey=" . $dbw->addQuotes( $nt->getPrefixedText() ) . |
| 907 | + " WHERE cl_from=" . $dbw->addQuotes( $this->getArticleID() ) . |
| 908 | + " AND cl_sortkey=" . $dbw->addQuotes( $this->getPrefixedText() ); |
907 | 909 | $dbw->query( $sql, "SpecialMovepage::doSubmit" ); |
908 | 910 | |
909 | 911 | |