imagecache_external_generate_path() should throw exception or return an empty string if called with a non-existant image

Created on 25 April 2023, almost 2 years ago

Problem/Motivation

imagecache_external_generate_path('http://example.com/this/does/not/exist.png') returns the nonsensical "http://localhost/sites/default/files", which is not an image. It should thrown an exception instead, or return an empty string, both of which would make more sense than "http://localhost/sites/default/files".

Steps to reproduce

call imagecache_external_generate_path('http://example.com/this/does/not/exist.png')

Proposed resolution

Throw an exception or return an empty string if the source file does not exist.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

🇨🇦Canada alberto56

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024