summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Haug2011-04-26 23:44:32 -0600
committerNathan Haug2011-04-26 23:44:32 -0600
commitb6edd5b6b8cee06a76adc1418530f1063ff6f59a (patch)
tree2a5f5de8619b27849d498d7f1e3218972e0d73d2
parent14dd4231fba2eaca3fb87b1bde3f53d9b4015e08 (diff)
Issue #1018850: Views file data description shows encoded characters.
-rw-r--r--views/filefield_handler_field_data.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/filefield_handler_field_data.inc b/views/filefield_handler_field_data.inc
index b7ff752..608914c 100644
--- a/views/filefield_handler_field_data.inc
+++ b/views/filefield_handler_field_data.inc
@@ -44,7 +44,12 @@ class filefield_handler_field_data extends views_handler_field_node {
$values = drupal_clone($values); // Prevent affecting the original.
$data = unserialize($values->{$this->field_alias});
$values->{$this->field_alias} = filefield_data_value($this->options['data_key'], $data[$this->options['data_key']]);
- return parent::render($values);
+
+ // Copied from views_handler_field_node(). We just remove the call to
+ // sanitize_value() from the original call, becaue our value has already
+ // been cleaned by filefield_data_value().
+ $value = $this->get_value($values);
+ return $this->render_link($value, $values);
}
}