Closed (works as designed)
Project:
Drupal core
Version:
6.18
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2007 at 15:05 UTC
Updated:
18 Oct 2012 at 14:34 UTC
The l() function modifies ampersand & Symbols in querystrings to & a m p ; This is done by the check_url function:
l() => check_url() => filter_xss_bad_protocol() => check_plain() => htmlspecialchars().
I've read about this problem, but it doesn't seem to be fixed.
Comments
Comment #1
pwolanin commentedAre you passing your query in as the fourth parameter of l() ?
http://api.drupal.org/api/5/function/l
I only see $path being subjected to the treatment you describe.
Comment #2
kenorb commentedThe same problem.
Related:
#40094: check_url function now creates unusable urls when module adds a query string
Comment #3
kenorb commentedCode:
Generated URI:
Comment #4
damien tournoud commentedThis is by design.
See #399488-16: Invalid markup generated by l(). for context.
Comment #5
kenorb commentedThank you.
Comment #6
ramsunvtech commentedSimply decode the Output of l (link) function