You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Find image tags within picture definitions and make sure they are converted only by block, */
149
118
privatefunctiontestPictures($content)
@@ -368,10 +337,7 @@ protected function convertInlineStyle($matches, $content)
368
337
continue;
369
338
}
370
339
$url = $match[1];
371
-
//$parsed_url = parse_url($url);
372
340
$filename = basename($url);
373
-
374
-
$fileonly = pathinfo($url, PATHINFO_FILENAME);
375
341
$ext = pathinfo($url, PATHINFO_EXTENSION);
376
342
377
343
if (! in_array($ext, $allowed_exts))
@@ -417,10 +383,15 @@ protected function convertInlineStyle($matches, $content)
417
383
{
418
384
// if webp, then add another URL() def after the targeted one. (str_replace old full URL def, with new one on main match?
419
385
$target_urldef = $matches[0][$i];
386
+
387
+
// The target_urldef should remain original to be picked up by str_replace, but the original_definitions are what goes back of the original stuff and should be filtered.
0 commit comments