[otrs-cvs] ITSMChangeManagement/Kernel/System ITSMChange.pm, 1.268.2.7, 1.268.2.8

"CVS commits notifications of OTRS.org" <[email protected]> Fri, 28 Jun 2013 13:03:05 +0000
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/ITSMChangeManagement/Kernel/System
In directory lancelot:/tmp/cvs-serv17045/Kernel/System

Modified Files:
      Tag: rel-3_0
	ITSMChange.pm 
Log Message:
Improved quoting for integer values to avoid possible security issues.

Author: ub

Index: ITSMChange.pm
===================================================================
RCS file: /home/cvs/ITSMChangeManagement/Kernel/System/ITSMChange.pm,v
retrieving revision 1.268.2.7
retrieving revision 1.268.2.8
diff -2 -u -d -r1.268.2.7 -r1.268.2.8
--- ITSMChange.pm	23 Oct 2012 13:16:56 -0000	1.268.2.7
+++ ITSMChange.pm	28 Jun 2013 13:03:00 -0000	1.268.2.8
@@ -1,5 +1,5 @@
 # --
 # Kernel/System/ITSMChange.pm - all change functions
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -1880,7 +1880,7 @@
         next WORKORDERPARAM if !@{ $Param{$WorkOrderParam} };
 
-        # quote
+        # quote as integer
         for my $OneParam ( @{ $Param{$WorkOrderParam} } ) {
-            $OneParam = $Self->{DBObject}->Quote($OneParam);
+            $OneParam = $Self->{DBObject}->Quote( $OneParam, 'Integer' );
         }
 
@@ -2320,5 +2320,5 @@
             Class => 'ITSM::ChangeManagement::Change::State',
             )
-        };
+    };
 
     # check the state hash
@@ -2581,5 +2581,5 @@
             Class => 'ITSM::ChangeManagement::' . $Param{Type},
             ) || {}
-        };
+    };
 
     if ( $Param{ID} ) {
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log