From ab4ae85eb80982ed1f1959842ca85888e9a62544 Mon Sep 17 00:00:00 2001 From: Dorian Vabre Date: Thu, 20 May 2021 16:33:04 +0200 Subject: [PATCH 1/2] fix: getpost exportagenda apha to alpha --- htdocs/public/agenda/agendaexport.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/htdocs/public/agenda/agendaexport.php b/htdocs/public/agenda/agendaexport.php index d40d75c0acf..2aaeb12de23 100644 --- a/htdocs/public/agenda/agendaexport.php +++ b/htdocs/public/agenda/agendaexport.php @@ -96,9 +96,9 @@ if (!isset($conf->global->MAIN_AGENDA_EXPORT_PAST_DELAY)) { $format = 'ical'; $type = 'event'; if (GETPOST("format", 'alpha')) { - $format = GETPOST("format", 'apha'); + $format = GETPOST("format", 'alpha'); } -if (GETPOST("type", 'apha')) { +if (GETPOST("type", 'alpha')) { $type = GETPOST("type", 'alpha'); } @@ -115,20 +115,20 @@ if (GETPOST("idfrom", 'int')) { if (GETPOST("idto", 'int')) { $filters['idto'] = GETPOST("idto", 'int'); } -if (GETPOST("project", 'apha')) { - $filters['project'] = GETPOST("project", 'apha'); +if (GETPOST("project", 'alpha')) { + $filters['project'] = GETPOST("project", 'alpha'); } -if (GETPOST("logina", 'apha')) { - $filters['logina'] = GETPOST("logina", 'apha'); +if (GETPOST("logina", 'alpha')) { + $filters['logina'] = GETPOST("logina", 'alpha'); } -if (GETPOST("logint", 'apha')) { - $filters['logint'] = GETPOST("logint", 'apha'); +if (GETPOST("logint", 'alpha')) { + $filters['logint'] = GETPOST("logint", 'alpha'); } -if (GETPOST("notactiontype", 'apha')) { - $filters['notactiontype'] = GETPOST("notactiontype", 'apha'); +if (GETPOST("notactiontype", 'alpha')) { + $filters['notactiontype'] = GETPOST("notactiontype", 'alpha'); } -if (GETPOST("actiontype", 'apha')) { - $filters['actiontype'] = GETPOST("actiontype", 'apha'); +if (GETPOST("actiontype", 'alpha')) { + $filters['actiontype'] = GETPOST("actiontype", 'alpha'); } if (GETPOST("notolderthan", 'int')) { $filters['notolderthan'] = GETPOST("notolderthan", "int"); From c561669edf0ad3f3374aa8183e36d6a3bf4243b6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 20 May 2021 17:02:22 +0200 Subject: [PATCH 2/2] Code comment --- htdocs/admin/system/security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/system/security.php b/htdocs/admin/system/security.php index 36f08309e02..a4060634ff9 100644 --- a/htdocs/admin/system/security.php +++ b/htdocs/admin/system/security.php @@ -155,7 +155,7 @@ print ''.$langs->trans("PermissionsOnFilesInWebRoot").': '; $arrayoffilesinroot = dol_dir_list(DOL_DOCUMENT_ROOT, 'all', 1, '', array('\/custom'), 'name', SORT_ASC, 4, 1, '', 1); $fileswithwritepermission = array(); foreach ($arrayoffilesinroot as $fileinroot) { - // Test permission on file + // Test if there is at least one write permission file. If yes, add the entry into array $fileswithwritepermission if ($fileinroot['perm'] & 0222) { $fileswithwritepermission[] = $fileinroot['relativename']; }