Closed (fixed)
Project:
ImageCache
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2008 at 21:35 UTC
Updated:
29 Mar 2008 at 19:52 UTC
If the image name contains '&', a 'page not found' errors occurs. For example, the image at www.site.com/files/imagecache/small/files/images/b&wpicture.jpg doesn't work, but the original url image www.site.com/files/images/b&wpicture.jpg works just fine.
For it to work on our site, I just replaced line 131 of the module to the following:
$source = substr($_SERVER['REQUEST_URI'], strripos($_SERVER['REQUEST_URI'], file_directory_path())); // $source = file_create_path($path);
Comments
Comment #1
ronnbot commentedSmall change on the fix, modified line 129 instead to the following:
$path = urldecode(substr($_SERVER['REQUEST_URI'], strripos($_SERVER['REQUEST_URI'], file_directory_path()))); //implode('/', $args);
Comment #2
dopry commentedFile names should probably get properly encoded with links are made... rather than trying to reverse engineer them... how are the imagecache url's being generated for your site?
Comment #3
dopry commenteddon't use the & in your image names... try transliteration module.