USe second parameter in GETPOST

This commit is contained in:
Laurent Destailleur 2017-09-15 10:52:53 +02:00
parent 0873260b8a
commit f5d2283093
10 changed files with 10 additions and 10 deletions

View File

@ -37,7 +37,7 @@ $langs->load("accountancy");
$mesg = ''; $mesg = '';
$action = GETPOST('action','aZ09'); $action = GETPOST('action','aZ09');
$backtopage = GETPOST('backtopage'); $backtopage = GETPOST('backtopage','alpha');
$id = GETPOST('id', 'int'); $id = GETPOST('id', 'int');
$rowid = GETPOST('rowid', 'int'); $rowid = GETPOST('rowid', 'int');
$cancel = GETPOST('cancel','alpha'); $cancel = GETPOST('cancel','alpha');

View File

@ -48,7 +48,7 @@ $action=GETPOST('action','alpha');
$confirm=GETPOST('confirm','alpha'); $confirm=GETPOST('confirm','alpha');
$rowid=GETPOST("rowid",'int'); $rowid=GETPOST("rowid",'int');
$orig_account=GETPOST("orig_account"); $orig_account=GETPOST("orig_account");
$backtopage=GETPOST('backtopage'); $backtopage=GETPOST('backtopage','alpha');
$cancel=GETPOST('cancel','alpha'); $cancel=GETPOST('cancel','alpha');
// Security check // Security check

View File

@ -54,7 +54,7 @@ if (!empty($conf->incoterm->enabled)) $langs->load('incoterm');
$action=GETPOST('action', 'alpha'); $action=GETPOST('action', 'alpha');
$confirm=GETPOST('confirm', 'alpha'); $confirm=GETPOST('confirm', 'alpha');
$backtopage=GETPOST('backtopage'); $backtopage=GETPOST('backtopage','alpha');
// Security check // Security check
$id = GETPOST('id', 'int'); $id = GETPOST('id', 'int');

View File

@ -38,7 +38,7 @@ $action = GETPOST('action','alpha');
$massaction = GETPOST('massaction','alpha'); $massaction = GETPOST('massaction','alpha');
$toselect = GETPOST('toselect', 'array'); $toselect = GETPOST('toselect', 'array');
$contextpage= GETPOST('contextpage','aZ')?GETPOST('contextpage','aZ'):'margindetail'; // To manage different context of search $contextpage= GETPOST('contextpage','aZ')?GETPOST('contextpage','aZ'):'margindetail'; // To manage different context of search
$backtopage = GETPOST('backtopage'); $backtopage = GETPOST('backtopage','alpha');
$optioncss = GETPOST('optioncss','alpha'); $optioncss = GETPOST('optioncss','alpha');
// Load variable for pagination // Load variable for pagination

View File

@ -520,7 +520,7 @@ if (GETPOST('ajoutsujet'))
if (!$user->rights->opensurvey->write) accessforbidden(); if (!$user->rights->opensurvey->write) accessforbidden();
print '<form name="formulaire" action="" method="POST">'."\n"; print '<form name="formulaire" action="" method="POST">'."\n";
print '<input type="hidden" name="backtopage" value="'.GETPOST('backtopage').'">'; print '<input type="hidden" name="backtopage" value="'.GETPOST('backtopage','alpha').'">';
print '<div class="center">'."\n"; print '<div class="center">'."\n";
print "<br><br>"."\n"; print "<br><br>"."\n";

View File

@ -69,7 +69,7 @@ $toselect = GETPOST('toselect', 'array');
$contextpage= GETPOST('contextpage','aZ')?GETPOST('contextpage','aZ'):'inventorylist'; // To manage different context of search $contextpage= GETPOST('contextpage','aZ')?GETPOST('contextpage','aZ'):'inventorylist'; // To manage different context of search
$id = GETPOST('id','int'); $id = GETPOST('id','int');
$backtopage = GETPOST('backtopage'); $backtopage = GETPOST('backtopage','alpha');
$optioncss = GETPOST('optioncss','alpha'); $optioncss = GETPOST('optioncss','alpha');
// Load variable for pagination // Load variable for pagination

View File

@ -48,7 +48,7 @@ $id = GETPOST("id",'int');
if (! $sortfield) $sortfield="p.ref"; if (! $sortfield) $sortfield="p.ref";
if (! $sortorder) $sortorder="DESC"; if (! $sortorder) $sortorder="DESC";
$backtopage=GETPOST("backtopage"); $backtopage=GETPOST('backtopage','alpha');
// Security check // Security check
$result=restrictedArea($user,'stock'); $result=restrictedArea($user,'stock');

View File

@ -51,7 +51,7 @@ $langs->load("stocks");
$langs->load("sendings"); $langs->load("sendings");
if (! empty($conf->productbatch->enabled)) $langs->load("productbatch"); if (! empty($conf->productbatch->enabled)) $langs->load("productbatch");
$backtopage=GETPOST('backtopage'); $backtopage=GETPOST('backtopage','alpha');
$action=GETPOST('action','aZ09'); $action=GETPOST('action','aZ09');
$cancel=GETPOST('cancel','alpha'); $cancel=GETPOST('cancel','alpha');

View File

@ -45,7 +45,7 @@ $langs->load("productbatch");
// Get parameters // Get parameters
$id = GETPOST('id','int'); $id = GETPOST('id','int');
$action = GETPOST('action','alpha'); $action = GETPOST('action','alpha');
$backtopage = GETPOST('backtopage'); $backtopage = GETPOST('backtopage','alpha');
$batch = GETPOST('batch','alpha'); $batch = GETPOST('batch','alpha');
$productid = GETPOST('productid','int'); $productid = GETPOST('productid','int');
$ref = GETPOST('ref','alpha'); // ref is productid_batch $ref = GETPOST('ref','alpha'); // ref is productid_batch

View File

@ -45,7 +45,7 @@ $langs->load("users");
// Get parameters // Get parameters
$id = GETPOST('id','int'); $id = GETPOST('id','int');
$action = GETPOST('action','alpha'); $action = GETPOST('action','alpha');
$backtopage = GETPOST('backtopage'); $backtopage = GETPOST('backtopage','alpha');
$myparam = GETPOST('myparam','alpha'); $myparam = GETPOST('myparam','alpha');