]> git.pld-linux.org Git - packages/lms.git/commitdiff
- SQL Injection fixes, performance fixes, code cleanup from upstream
authorSÅ‚awomir Paszkiewicz <paszczus@pld-linux.org>
Wed, 6 Apr 2011 13:38:21 +0000 (13:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lms-balancelist.php.patch -> 1.1

lms-balancelist.php.patch [new file with mode: 0644]

diff --git a/lms-balancelist.php.patch b/lms-balancelist.php.patch
new file mode 100644 (file)
index 0000000..c9a4804
--- /dev/null
@@ -0,0 +1,32 @@
+--- modules/balancelist.php    2011/01/18 08:12:20     1.64
++++ modules/balancelist.php    2011/04/01 10:35:12     1.65
+@@ -21,7 +21,7 @@
+  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+  *  USA.
+  *
+- *  $Id$
++ *  $Id$
+  */
+ function GetBalanceList($search=NULL, $cat=NULL, $group=NULL, $pagelimit=100, $page=NULL, $from, $to)
+@@ -42,7 +42,7 @@
+                               $where = ' AND documents.number = '.intval($search);
+                       break;
+                       case 'cdate':
+-                              $where = ' AND cash.time >= '.$search.' AND cash.time < '.($search+86400);
++                              $where = ' AND cash.time >= '.intval($search).' AND cash.time < '.(intval($search)+86400);
+                       break;
+                       case 'ten':
+                               $where = ' AND c.ten = '.$DB->Escape($search);
+@@ -68,9 +68,9 @@
+       }
+       if($from)
+-              $where .= ' AND cash.time >= '.$from;
++              $where .= ' AND cash.time >= '.intval($from);
+       if($to)
+-              $where .= ' AND cash.time <= '.$to;
++              $where .= ' AND cash.time <= '.intval($to);
+       if($res = $DB->Exec('SELECT cash.id AS id, time, cash.userid AS userid, cash.value AS value, 
+                               cash.customerid AS customerid, comment, docid, cash.type AS type,
This page took 0.043093 seconds and 4 git commands to generate.