parent
53fd549523
commit
b899847009
|
@ -653,13 +653,11 @@
|
||||||
|
|
||||||
if (SIMPLEPIE_CACHE_IMAGES && $cache_images) {
|
if (SIMPLEPIE_CACHE_IMAGES && $cache_images) {
|
||||||
|
|
||||||
$image_handler = get_self_url_prefix() . '/image.php';
|
|
||||||
|
|
||||||
if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) {
|
if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) {
|
||||||
_debug("enabling image cache: $image_handler");
|
_debug("enabling image cache");
|
||||||
}
|
}
|
||||||
|
|
||||||
$rss->set_image_handler($image_handler, 'i');
|
$rss->set_image_handler("image.php", 'i');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) {
|
if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) {
|
||||||
|
@ -3714,6 +3712,7 @@
|
||||||
rewrite_relative_url($site_url, $entry->getAttribute('href')));
|
rewrite_relative_url($site_url, $entry->getAttribute('href')));
|
||||||
|
|
||||||
if ($entry->hasAttribute('src'))
|
if ($entry->hasAttribute('src'))
|
||||||
|
if (preg_match('/^image.php\?i=[a-z0-9]+$/', $entry->getAttribute('src')) == 0)
|
||||||
$entry->setAttribute('src',
|
$entry->setAttribute('src',
|
||||||
rewrite_relative_url($site_url, $entry->getAttribute('src')));
|
rewrite_relative_url($site_url, $entry->getAttribute('src')));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue