Closed (fixed)
Project:
ImageField
Version:
6.x-3.0-alpha4
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2009 at 10:49 UTC
Updated:
25 Mar 2009 at 00:30 UTC
Special characters like the registered, copyright or "@" character in "alt" and "title" fields break the image display completely.
On the first nodeview nothing strange happens. The problems occur when the node is loaded from the cache for the first time. Images are not displayed anymore. After saving a node the images disappear from the database (values become NULL after update).
We didnt understand completely whats happening but a small modification of CKK content.module is a quick and dirty fix. I suppose a validation function for the "title" and "alt" fields would do the job?
ORIGINAL content.module line 238 of function content_load(&$node):::
if ($cached = cache_get($cid, content_cache_tablename())) {
foreach ($cached->data as $key => $value) {
$node->$key = $value;
}
} else { ...
QUICK AND DIRTY FIX content.module line 238 of function content_load(&$node):::
if (FALSE) {
foreach ($cached->data as $key => $value) {
$node->$key = $value;
}
} else { ...
Comments
Comment #1
quicksketchI think fixed this problem before I found this issue. It has been corrected in this commit:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/imagefield/...