[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');
}
}
- [Noalyss-commit] [noalyss] branch master updated (67dc4a8 -> 9d5d626), Dany De Bontridder, 2020/11/08
- [Noalyss-commit] [noalyss] 02/12: Cosmetic : install structure input, Dany De Bontridder, 2020/11/08
- [Noalyss-commit] [noalyss] 01/12: Cosmetic : follow up, Dany De Bontridder, 2020/11/08
- [Noalyss-commit] [noalyss] 03/12: Cosmetic, Dany De Bontridder, 2020/11/08
- [Noalyss-commit] [noalyss] 04/12: Bug : incompatibilty with php 7.4, Dany De Bontridder, 2020/11/08
- [Noalyss-commit] [noalyss] 05/12: ergonomy : add waiting box, Dany De Bontridder, 2020/11/08
- [Noalyss-commit] [noalyss] 06/12: Bug : follow up mixed description and comment, Dany De Bontridder, 2020/11/08
- [Noalyss-commit] [noalyss] 09/12: Print Accounting : export pdf does not work, Dany De Bontridder, 2020/11/08
- [Noalyss-commit] [noalyss] 10/12: Bug : when ledger not found, Dany De Bontridder, 2020/11/08
- [Noalyss-commit] [noalyss] 07/12: task #0001861: Plage de cases à cocher , search action, Dany De Bontridder, 2020/11/08
- [Noalyss-commit] [noalyss] 08/12: Remove direct access _GET,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 12/12: Bug : follow-up , add a new security against the duplicate for Follo_Up reference (ag_ref), Dany De Bontridder, 2020/11/08
- [Noalyss-commit] [noalyss] 11/12: Improve Test, Dany De Bontridder, 2020/11/08