mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-04 16:12:39 +01:00
Update task.php
use GETPOST instead of $_GET and $_POST
This commit is contained in:
@@ -37,7 +37,7 @@ $langs->load("projects");
|
||||
$langs->load("companies");
|
||||
|
||||
$id=GETPOST('id','int');
|
||||
$ref=$_GET["ref"];
|
||||
$ref=GETPOST("ref",'alpha',1);
|
||||
$action=GETPOST('action','alpha');
|
||||
$confirm=GETPOST('confirm','alpha');
|
||||
$withproject=GETPOST('withproject','int');
|
||||
@@ -81,7 +81,7 @@ if ($action == 'update' && ! $_POST["cancel"] && $user->rights->projet->creer)
|
||||
$task_parent=$tmparray[1];
|
||||
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->description = $_POST['description'];
|
||||
$object->fk_task_parent = $task_parent;
|
||||
|
||||
Reference in New Issue
Block a user