noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 02/03: Protect global variable $_POST


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/03: Protect global variable $_POST
Date: Sat, 19 Feb 2022 10:28:58 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit f4bc48bbf0a1d7c519209877cad69a726fb3e00e
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Feb 19 16:23:41 2022 +0100

    Protect global variable $_POST
---
 include/action.common.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/action.common.inc.php b/include/action.common.inc.php
index 5f47e82e..4e05db6c 100644
--- a/include/action.common.inc.php
+++ b/include/action.common.inc.php
@@ -316,7 +316,7 @@ if ($sub_action == "save_action_st2")
     try {
        $act->d_id = 0;
         $act->ag_id=$http->request("ag_id","number");
-       $act->md_id = (isset($_POST['gen_doc'])) ? $_POST['gen_doc'] : 0;
+       $act->md_id = $http->post('gen_doc','number',0);
 
         $act->verify();
         $sup_parameter=HtmlInput::array_to_string(["sc","sb","f_id","qcode"], 
$_REQUEST,"&amp;");



reply via email to

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