Index: trunk/phase3/includes/api/ApiQueryCategoryMembers.php |
— | — | @@ -152,13 +152,14 @@ |
153 | 153 | if ($hasError) |
154 | 154 | $this->dieUsage("Invalid continue param. You should pass the original value returned by the previous query", "badcontinue"); |
155 | 155 | |
156 | | - $sortKey = $this->getDB()->addQuotes($continueList[0]); |
| 156 | + $encSortKey = $this->getDB()->addQuotes($continueList[0]); |
| 157 | + $encFrom = $this->getDB()->addQuotes($from); |
157 | 158 | |
158 | 159 | if ($from != 0) { |
159 | 160 | // Duplicate sort key continue |
160 | | - $this->addWhere( "cl_sortkey>$sortKey OR (cl_sortkey=$sortKey AND cl_from>=$from)" ); |
| 161 | + $this->addWhere( "cl_sortkey>$encSortKey OR (cl_sortkey=$encSortKey AND cl_from>=$encFrom)" ); |
161 | 162 | } else { |
162 | | - $this->addWhere( "cl_sortkey>=$sortKey" ); |
| 163 | + $this->addWhere( "cl_sortkey>=$encSortKey" ); |
163 | 164 | } |
164 | 165 | } |
165 | 166 | |