Use 'enc' variable naming convention for interpolated pre-encoded variables in raw...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 4 Sep 2007 14:25:55 +0000 (14:25 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 4 Sep 2007 14:25:55 +0000 (14:25 +0000)
includes/api/ApiQueryCategoryMembers.php

index d46e845..96e75b5 100644 (file)
@@ -152,13 +152,14 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase {
                if ($hasError)
                        $this->dieUsage("Invalid continue param. You should pass the original value returned by the previous query", "badcontinue");
 
-               $sortKey = $this->getDB()->addQuotes($continueList[0]);
+               $encSortKey = $this->getDB()->addQuotes($continueList[0]);
+               $encFrom = $this->getDB()->addQuotes($from);
 
                if ($from != 0) {
                        // Duplicate sort key continue
-                       $this->addWhere( "cl_sortkey>$sortKey OR (cl_sortkey=$sortKey AND cl_from>=$from)" );
+                       $this->addWhere( "cl_sortkey>$encSortKey OR (cl_sortkey=$encSortKey AND cl_from>=$encFrom)" );
                } else {
-                       $this->addWhere( "cl_sortkey>=$sortKey" );
+                       $this->addWhere( "cl_sortkey>=$encSortKey" );
                }
        }