From 3bf33f1a37f3c7c392eaac1cffd83fa920de82da Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 1 Sep 2003 13:35:45 +0000 Subject: [PATCH] corrected update method --- lib/dashboard/DashboardNews.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dashboard/DashboardNews.inc b/lib/dashboard/DashboardNews.inc index f6adaca..c55bd79 100644 --- a/lib/dashboard/DashboardNews.inc +++ b/lib/dashboard/DashboardNews.inc @@ -337,7 +337,7 @@ class DashboardNews { "synopsis = '$this->sSynopsis', " . "body = '$this->sBody', " . "rank = $this->iRank, " . - "image = '$this->sImage', " . + "image = '" . addslashes($this->sImage) . "', " . "image_size = $this->iImageSize " . ($this->iImageMimeTypeID ? ", image_mime_type_id = $this->iImageMimeTypeID " : " ") . "WHERE id = $this->iId"; -- libgit2 0.21.4