Closed (fixed)
Project:
Image Assist
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2005 at 03:57 UTC
Updated:
28 Jun 2005 at 17:53 UTC
The code to determine the path/url to a thumbnail was flawed. It didn't work if there were multiple dots in the path or filename. The included patch fixes that by changing one line.
Also, the patch fixes some issues with url paths. If someone has "private" files, or enters an absolute path to their files directory, this module would render broken images (invalid url's to thumbnails and preview images). The fix was to simply call file_create_url() with the file path when rendering the HTML.
This code was tested with Drupal 4.6 and walkah's sandbox image module.
| Comment | File | Size | Author |
|---|---|---|---|
| img_url_fix.patch | 2.32 KB | jash4 |
Comments
Comment #1
matt westgate commentedThe code in the patch to determine the path/url to a thumbnail doesn't work as expected. Instead of rendering the thumbnail it renders the 'preview' copy of the image.
I applied the 'private files' part of the patch however.
Comment #2
matt westgate commentedAnother patch was submitted and applied that should resolve any remaining issues.