Closed (works as designed)
Project:
ImageCache
Version:
5.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2008 at 10:52 UTC
Updated:
19 Apr 2008 at 17:11 UTC
I've had some trouble with imagecache not working during node preview using the CCK imagefield, because the images were being stored in the /tmp directory. Imagecache implode()s the file path from the argument string, losing the '/' at the start. The attached patch fixed this problem for me.
| Comment | File | Size | Author |
|---|---|---|---|
| check_for_beginning_slash.patch | 746 bytes | Rob Knight |
Comments
Comment #1
dopry commentedand can you tell me why you want ImageCache serving images from your tmp directory?
Comment #2
dopry commentedOk so sorry... this is more of a by design thing... don't use absolute paths to imagecache source images... they need to be either relative to the file directory path or the root of the drupal installation...
This is a security issue... I'm sure you dont' want me grabbing images from other websites on your server or your users home directory...