noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 06/11: Protect global


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 06/11: Protect global
Date: Fri, 25 Oct 2019 18:42:51 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 51d5dc4ea21440fb0bc65d96fd380887c0bef58f
Author: Dany De Bontridder <address@hidden>
Date:   Tue Oct 22 19:22:24 2019 +0200

    Protect global
---
 include/history_operation.inc.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/history_operation.inc.php 
b/include/history_operation.inc.php
index 50f0e11..6a64386 100644
--- a/include/history_operation.inc.php
+++ b/include/history_operation.inc.php
@@ -108,8 +108,8 @@ list($sql, $where) = $Ledger->build_search_sql($p_array);
 $max_line = $cn->count_sql($sql);
 
 $step = $_SESSION['g_pagesize'];
-$page = (isset($_GET['offset'])) ? $_GET['page'] : 1;
-$offset = (isset($_GET['offset'])) ? $_GET['offset'] : 0;
+$page = (isset($_GET['offset'])) ? $http->get('page') : 1;
+$offset = (isset($_GET['offset'])) ? $http->get('offset') : 0;
 
 // check if number
 $page=(isNumber($page)==0)?1:$page;
@@ -121,7 +121,7 @@ echo $msg;
 echo $Ledger->display_search_form();
 echo $bar;
 echo '<form method="GET" id="fpaida" class="print">';
-echo HtmlInput::hidden("ac", $_REQUEST['ac']);
+echo HtmlInput::hidden("ac", $http->request('ac'));
 echo HtmlInput::hidden('ledger_type',$ledger_type);
 echo dossier::hidden();
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]