From a3f6e23ff2f8f03a1f514c614158461c457f403f Mon Sep 17 00:00:00 2001 From: TheCartpenter Date: Sun, 8 Dec 2024 10:15:40 -0500 Subject: [PATCH] Added int cast on admin SEO URL controller as per MB --- upload/admin/controller/design/seo_url.php | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/upload/admin/controller/design/seo_url.php b/upload/admin/controller/design/seo_url.php index cba81ba96..8c810b0b0 100644 --- a/upload/admin/controller/design/seo_url.php +++ b/upload/admin/controller/design/seo_url.php @@ -55,11 +55,11 @@ public function add(): void { } if (isset($this->request->get['filter_store_id'])) { - $url .= '&filter_store_id=' . $this->request->get['filter_store_id']; + $url .= '&filter_store_id=' . (int)$this->request->get['filter_store_id']; } if (isset($this->request->get['filter_language_id'])) { - $url .= '&filter_language_id=' . $this->request->get['filter_language_id']; + $url .= '&filter_language_id=' . (int)$this->request->get['filter_language_id']; } if (isset($this->request->get['sort'])) { @@ -109,11 +109,11 @@ public function edit(): void { } if (isset($this->request->get['filter_store_id'])) { - $url .= '&filter_store_id=' . $this->request->get['filter_store_id']; + $url .= '&filter_store_id=' . (int)$this->request->get['filter_store_id']; } if (isset($this->request->get['filter_language_id'])) { - $url .= '&filter_language_id=' . $this->request->get['filter_language_id']; + $url .= '&filter_language_id=' . (int)$this->request->get['filter_language_id']; } if (isset($this->request->get['sort'])) { @@ -165,11 +165,11 @@ public function delete(): void { } if (isset($this->request->get['filter_store_id'])) { - $url .= '&filter_store_id=' . $this->request->get['filter_store_id']; + $url .= '&filter_store_id=' . (int)$this->request->get['filter_store_id']; } if (isset($this->request->get['filter_language_id'])) { - $url .= '&filter_language_id=' . $this->request->get['filter_language_id']; + $url .= '&filter_language_id=' . (int)$this->request->get['filter_language_id']; } if (isset($this->request->get['sort'])) { @@ -249,11 +249,11 @@ protected function getList(): void { } if (isset($this->request->get['filter_store_id'])) { - $url .= '&filter_store_id=' . $this->request->get['filter_store_id']; + $url .= '&filter_store_id=' . (int)$this->request->get['filter_store_id']; } if (isset($this->request->get['filter_language_id'])) { - $url .= '&filter_language_id=' . $this->request->get['filter_language_id']; + $url .= '&filter_language_id=' . (int)$this->request->get['filter_language_id']; } if (isset($this->request->get['sort'])) { @@ -344,11 +344,11 @@ protected function getList(): void { } if (isset($this->request->get['filter_store_id'])) { - $url .= '&filter_store_id=' . $this->request->get['filter_store_id']; + $url .= '&filter_store_id=' . (int)$this->request->get['filter_store_id']; } if (isset($this->request->get['filter_language_id'])) { - $url .= '&filter_language_id=' . $this->request->get['filter_language_id']; + $url .= '&filter_language_id=' . (int)$this->request->get['filter_language_id']; } if ($order == 'ASC') { @@ -377,11 +377,11 @@ protected function getList(): void { } if (isset($this->request->get['filter_store_id'])) { - $url .= '&filter_store_id=' . $this->request->get['filter_store_id']; + $url .= '&filter_store_id=' . (int)$this->request->get['filter_store_id']; } if (isset($this->request->get['filter_language_id'])) { - $url .= '&filter_language_id=' . $this->request->get['filter_language_id']; + $url .= '&filter_language_id=' . (int)$this->request->get['filter_language_id']; } if (isset($this->request->get['sort'])) {