projects
/
project/filefield.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
90b9a66
)
#363960 by alexpott: Data array not unserialized on the sanitize call.
author
andrew morton
Tue, 27 Jan 2009 18:33:41 +0000 (18:33 +0000)
committer
andrew morton
Tue, 27 Jan 2009 18:33:41 +0000 (18:33 +0000)
filefield_field.inc
patch
|
blob
|
blame
|
history
diff --git
a/filefield_field.inc
b/filefield_field.inc
index
ef20306
..
172856b
100644
(file)
--- a/
filefield_field.inc
+++ b/
filefield_field.inc
@@
-139,6
+139,10
@@
function filefield_field_sanitize($node, $field, &$items, $teaser, $page) {
if (!empty($item['fid']) && empty($item['filepath'])) {
$items[$delta] = array_merge($item, field_file_load($item['fid']));
}
+ // Extract data array from serialized string.
+ if (is_string($item['data'])){
+ $items[$delta]['data'] = unserialize($item['data']);
+ }
// Add nid so formatters can create a link to the node.
$items[$delta]['nid'] = $node->nid;
}