Fixed height/width image attributes for enclosures.
Per <https://tt-rss.org/forum/viewtopic.php?f=1&t=3482>: Width/height values for images appear to be swapped when rendering enclosures. This fixes that so width is assigned width, etc.
See merge request !12
Keep local cached images fresh if file exists.
Updates the cache_images() function to `touch` images if the file exists already. Some sites (e.g. news) re-use stock images and this change updates the local file's modified time every time the image is referenced in new articles. This should prevent the local file from being expired/deleted only to be re-cached later on.
See merge request !9
Updates the cache_images() function to `touch` images if the file exists already. Some sites (e.g. news) re-use stock images and this change updates the local file's modified time every time the image is referenced in new articles. This should prevent the local file from being expired/deleted only to be re-cached later on.
Unset $retval after HOOK_FORMAT_ENCLOSURES.
Fixes an edge case where changing the array of enclosures with HOOK_FORMAT_ENCLOSURES might break the dropdown rendering if HOOK_RENDER_ENCLOSURE has no registered hooks.
See merge request !6
Fixes an edge case where changing the array of enclosures with HOOK_FORMAT_ENCLOSURES might break the dropdown rendering if HOOK_RENDER_ENCLOSURE has no registered hooks.
protect .htaccess and config.php against accessing by strangers
Currently .htaccess and config.php can be accessed from strangers via http so I modified the .htaccess file to make sure they are not accessible via http.
See merge request !4