noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 10/46: Bug : customer.inc.php with http_input


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 10/46: Bug : customer.inc.php with http_input::request Correct : Contact.inc.php remove direct use of $_GET
Date: Mon, 4 May 2020 13:38:44 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 47136443451e05b54fcef8a22b5acfce9b6789cd
Author: Dany De Bontridder <address@hidden>
AuthorDate: Fri Feb 14 10:56:56 2020 +0100

    Bug : customer.inc.php with http_input::request
    Correct : Contact.inc.php remove direct use of $_GET
---
 include/contact.inc.php  | 4 ++--
 include/customer.inc.php | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/contact.inc.php b/include/contact.inc.php
index 06f76b5..f226618 100644
--- a/include/contact.inc.php
+++ b/include/contact.inc.php
@@ -73,8 +73,8 @@ if ($low_action == "list")
        <form method="get" action="<?php echo $href;?>">
                <?php
                echo dossier::hidden();
-               $a = (isset($_GET['query'])) ? $_GET['query'] : "";
-                echo _("Cherche ").HtmlInput::filter_table_form("contact_tb", 
'0,1,2,3,4,5,6', 1,"query",$a);
+               $a = $http->get("query","string","");
+        echo _("Cherche ").HtmlInput::filter_table_form("contact_tb", 
'0,1,2,3,4,5,6', 1,"query",$a);
 
                $sel_card = new ISelect('cat');
                $sel_card->value = $cn->make_array('select fd_id, fd_label from 
fiche_def ' .
diff --git a/include/customer.inc.php b/include/customer.inc.php
index 0bbc7c5..d42e835 100644
--- a/include/customer.inc.php
+++ b/include/customer.inc.php
@@ -77,7 +77,7 @@ if ($low_action == "list")
             $a=$http->get("query","string",""); 
             echo _("Cherche ").HtmlInput::filter_table_form("tiers_tb", 
'0,1,2', 1,"query",$a);
 
-            $choice_cat=$http->request("choice_cat", "",1);
+            $choice_cat=$http->request("choice_cat", "string",1);
 
             if ( $choice_cat == 1 )
             {



reply via email to

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