noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 02/14: Reinforce and Protect ajax


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/14: Reinforce and Protect ajax
Date: Wed, 28 Oct 2015 09:56:55 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit f4ebb0664e1855b558e953eaee9c9e7da9568452
Author: Dany De Bontridder <address@hidden>
Date:   Sun Oct 25 17:58:47 2015 +0100

    Reinforce and Protect ajax
---
 include/ajax/ajax_remove_submenu.php |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/ajax/ajax_remove_submenu.php 
b/include/ajax/ajax_remove_submenu.php
index 913f997..9247301 100644
--- a/include/ajax/ajax_remove_submenu.php
+++ b/include/ajax/ajax_remove_submenu.php
@@ -26,5 +26,6 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas 
permis');
 if ($g_user->check_module('CFGPRO')==0)
     die();
 $p_profile_menu_id=HtmlInput::default_value_get('p_profile_menu_id', 0);
+if ( $p_profile_menu_id == 0 ||isNumber($p_profile_menu_id)==0)    throw new 
Exception(_('Donnée invalide'));
 $cn->exec_sql('delete from profile_menu where pm_id = $1 or 
pm_id_dep=$1',array($p_profile_menu_id))
 ?>        
\ No newline at end of file



reply via email to

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