noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 08/12: Remove direct access _GET


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 08/12: Remove direct access _GET
Date: Sun, 8 Nov 2020 15:52:15 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 1d32dbe93f063154fcd1d22690cae53f3e97de2b
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Nov 7 15:35:58 2020 +0100

    Remove direct access _GET
---
 include/template/action_search.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/template/action_search.php 
b/include/template/action_search.php
index f2eb1a7..20f3a43 100644
--- a/include/template/action_search.php
+++ b/include/template/action_search.php
@@ -132,9 +132,11 @@
                    <?php echo Tag::button_search('search'); ?>
                    <?php
                        if ( isset($_GET['searchtag'])) {
+                           $http=new HttpInput();
                            echo Tag::add_clear_button('search');
-                           for ($i=0;$i<count($_GET['searchtag']);$i++) {
-                               $t=new Tag($cn, $_GET['searchtag'][$i]);
+                           $asearchtag= 
$http->get("searchtag","array",array());
+                           for ($i=0;$i<count($asearchtag);$i++) {
+                               $t=new Tag($cn, $asearchtag[$i]);
                                echo $t->update_search_cell('search');
                            }
                        }



reply via email to

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