Update task.php
use GETPOST instead of $_GET and $_POST
This commit is contained in:
parent
c923d06d84
commit
d98d4d219f
@ -37,7 +37,7 @@ $langs->load("projects");
|
|||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
|
|
||||||
$id=GETPOST('id','int');
|
$id=GETPOST('id','int');
|
||||||
$ref=$_GET["ref"];
|
$ref=GETPOST("ref",'alpha',1);
|
||||||
$action=GETPOST('action','alpha');
|
$action=GETPOST('action','alpha');
|
||||||
$confirm=GETPOST('confirm','alpha');
|
$confirm=GETPOST('confirm','alpha');
|
||||||
$withproject=GETPOST('withproject','int');
|
$withproject=GETPOST('withproject','int');
|
||||||
@ -81,7 +81,7 @@ if ($action == 'update' && ! $_POST["cancel"] && $user->rights->projet->creer)
|
|||||||
$task_parent=$tmparray[1];
|
$task_parent=$tmparray[1];
|
||||||
if (empty($task_parent)) $task_parent = 0; // If task_parent is ''
|
if (empty($task_parent)) $task_parent = 0; // If task_parent is ''
|
||||||
|
|
||||||
$object->ref = $_POST["ref"];
|
$object->ref = GETPOST("ref",'alpha',2);
|
||||||
$object->label = $_POST["label"];
|
$object->label = $_POST["label"];
|
||||||
$object->description = $_POST['description'];
|
$object->description = $_POST['description'];
|
||||||
$object->fk_task_parent = $task_parent;
|
$object->fk_task_parent = $task_parent;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user