mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
do no transform data:image
This commit is contained in:
parent
3cc48f156f
commit
4347bc06a2
|
|
@ -303,6 +303,8 @@ function getAllImages($object, $objectpage, $urltograb, &$tmp, &$action, $modify
|
|||
|
||||
foreach ($regs[0] as $key => $val)
|
||||
{
|
||||
if (preg_match('/^data:image/i', $regs[2][$key])) continue; // We do nothing for such images
|
||||
|
||||
$urltograbbis = $urltograb.(preg_match('/^\//', $regs[2][$key])?'':'/').$regs[2][$key];
|
||||
$linkwithoutdomain = $regs[2][$key];
|
||||
$filetosave = $conf->medias->multidir_output[$conf->entity].'/image/'.$object->ref.'/'.$objectpage->pageurl.(preg_match('/^\//', $regs[2][$key])?'':'/').$regs[2][$key];
|
||||
|
|
@ -357,6 +359,8 @@ function getAllImages($object, $objectpage, $urltograb, &$tmp, &$action, $modify
|
|||
|
||||
foreach ($regs[0] as $key => $val)
|
||||
{
|
||||
if (preg_match('/^data:image/i', $regs[2][$key])) continue; // We do nothing for such images
|
||||
|
||||
$urltograbbis = $urltograb.(preg_match('/^\//', $regs[2][$key])?'':'/').$regs[2][$key];
|
||||
|
||||
$linkwithoutdomain = $regs[2][$key];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user