diff --git a/zb_system/function/lib/sql/global.php b/zb_system/function/lib/sql/global.php index 1609ecaf..f133ed07 100644 --- a/zb_system/function/lib/sql/global.php +++ b/zb_system/function/lib/sql/global.php @@ -776,10 +776,10 @@ protected function buildLimit() if (isset($this->option['limit'])) { if ($this->option['limit'] > 0) { - $sql[] = "LIMIT " . str_replace(array('"',"'"), '', $this->option['limit']); + $sql[] = "LIMIT " . str_replace(array('"',"'",';'), '', $this->option['limit']); if (isset($this->option['offset'])) { - $sql[] = "OFFSET " . str_replace(array('"',"'"), '', $this->option['offset']); + $sql[] = "OFFSET " . str_replace(array('"',"'",';'), '', $this->option['offset']); } } }