Stock protect against direct access to $_GET
This commit is contained in:
parent
d2d17bf578
commit
8722a01529
1 changed files with 3 additions and 3 deletions
|
|
@ -28,11 +28,11 @@
|
|||
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
|
||||
require_once NOALYSS_INCLUDE.'/database/stock_sql.class.php';
|
||||
$cn=Dossier::connect();
|
||||
$st=new Stock_Sql($cn,$_GET['r_id']);
|
||||
$st=new Stock_Sql($cn,$http->get('r_id','number'));
|
||||
?>
|
||||
<?php echo HtmlInput::title_box("Ajouter un dépôt","change_stock_repo_div","close")?>
|
||||
<?php echo HtmlInput::title_box("Modifier un dépôt","change_stock_repo_div","close")?>
|
||||
<form method="post">
|
||||
<?php echo HtmlInput::hidden("r_id",$_GET['r_id']);?>
|
||||
<?php echo HtmlInput::hidden("r_id",$http->get('r_id','number'));?>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue