Active
Project:
interwiki
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2011 at 20:24 UTC
Updated:
16 Mar 2011 at 20:24 UTC
The entire url is passed to the l() function which incorrectly encodes query strings, breaking the url. This can be resolved by changing the two occurrences of:
$html = l($display_term, $url, array('title' => "reference on $display_term", 'target' => $target));
to:
$url = explode('?', $url);
$html = l($display_term, $url[0], array('title' => "reference on $display_term", 'target' => $target, 'query' => $url[1]));