Fix: Bug of import of agenda when using https link

This commit is contained in:
Laurent Destailleur 2014-02-08 01:16:20 +01:00
parent 319b13dafb
commit abc8649e02

View File

@ -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++;