Merge pull request #6210 from defrance/patch-64
FIX : prevent error with realpath
This commit is contained in:
commit
3ab4782d93
@ -81,8 +81,10 @@ function dol_getImageSize($file, $url = false)
|
|||||||
$fichier = $file;
|
$fichier = $file;
|
||||||
if (!$url)
|
if (!$url)
|
||||||
{
|
{
|
||||||
$fichier = realpath($file); // Chemin canonique absolu de l'image
|
$fichier = realpath(dol_osencode($file)); // Chemin canonique absolu de l'image
|
||||||
$dir = dirname($file); // Chemin du dossier contenant l'image
|
// if problem with realpath
|
||||||
|
if ($fichier == false)
|
||||||
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
$infoImg = getimagesize($fichier); // Recuperation des infos de l'image
|
$infoImg = getimagesize($fichier); // Recuperation des infos de l'image
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user