Skip to content
Snippets Groups Projects
Commit abc8649e authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Bug of import of agenda when using https link

parent 319b13da
Branches
Tags
No related merge requests found
......@@ -67,7 +67,7 @@ if ($actionsave)
$color=trim(GETPOST('agenda_ext_color'.$i,'alpha'));
if ($color=='-1') $color='';
if (! empty($src) && ! preg_match('/^(http\s*|ftp\s*):/', $src))
if (! empty($src) && ! dol_is_url($src))
{
setEventMessage($langs->trans("ErrorParamMustBeAnUrl"),'errors');
$error++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment