ckan / ckanext-pages

A simple builtin CMS for CKAN sites
GNU General Public License v3.0
51 stars 99 forks source link

Do not prefix absolute HTTP URLs of uploaded image #107

Closed shevron closed 3 years ago

shevron commented 3 years ago

This fixes situations where some IUploader implementations may return an absolute HTTP URL as the image_url after uploading. This changes the logic to only prefix URLs with the static URL if they are not already absolute.