Closed (fixed)
Project:
Search attachments
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2007 at 15:18 UTC
Updated:
3 Nov 2007 at 03:31 UTC
In Drupal 5.2 and 5.3 (doesn't happen in 5.0, 5.1 not tested yet), the link in the result list to the parent node is displayed as escaped HTML. Here is the code that shows how each item in the result list is created:
$results[] = array(
'link' => $file['link'],
'type' => node_get_types('name', $node) . ' - ' . l($node->title,'node/' . $node->nid),
'title' => t('Attachment') . ': ' . $file['name'].' ['.format_size($file['size']).']',
'snippet' => search_excerpt($keys, $dataset->data),
);
It looks like the l() function is escaping the HTML that it is wrapping around $node->title. This happens in all themes that come bundled with Drupal.
Comments
Comment #1
markj commentedI've fixed this and will be releasing the new version in a couple of days.
Comment #2
markj commented