From fa671c0a8e328b01a342e649672eb34250b51362 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 20 May 2006 17:36:47 +0000 Subject: [PATCH] r830: Clean the ids when se use set_*() --- includes/class_logging.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/includes/class_logging.php b/includes/class_logging.php index feec5be..fa959c6 100644 --- a/includes/class_logging.php +++ b/includes/class_logging.php @@ -90,9 +90,10 @@ class Logging * * @param integer New bug ID */ - function set_bugid($newbugid) + function set_bugid($id) { - $this->bugid = $newbugid; + global $bugsys; + $this->bugid = $bugsys->clean($id, TYPE_UINT); } // ################################################################### @@ -105,7 +106,8 @@ class Logging */ function set_attachmentid($id) { - $this->attachmentid = $id; + global $bugsys; + $this->attachmentid = $bugsys->clean($id, TYPE_UINT); } // ################################################################### @@ -118,7 +120,8 @@ class Logging */ function set_commentid($id) { - $this->commentid = $id; + global $bugsys; + $this->commentid = $bugsys->clean($id, TYPE_UINT); } // ################################################################### -- 2.22.5