Closed (fixed)
Project:
Spam
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2007 at 04:40 UTC
Updated:
23 Jun 2007 at 12:21 UTC
Jump to comment: Most recent file
The "Not Spam (1)" that is displayed below a node after you manually mark it as 'not spam' does not display correctly: it shows the a href link instead of linking the "1" to the correct place. See attached image.
It displays the following:
* not spam (<a href="/admin/spam/logs/node/612">1</a>)
* mark as spam
* report as spam
Here is the code behind the spam module's links in the Links Bar:
<li class="spam-probability"><span class="spam-probability">not spam (<a href="/admin/spam/logs/node/612">1</a>)</span></li>
<li class="spam-spam"><a href="/spam/node/612/spam" class="spam-spam">mark as spam</a></li>
<li class="spam-report"><a href="/spam/report/node/612" class="spam-report">report as spam</a></li>This happens in both the Bluebreeze theme and Garland theme, and in FireFox and Internet Explorer.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | spam.module_6.patch | 989 bytes | jaydub |
| notspambroken.PNG | 102.16 KB | shadyman@erroraccessdenied.com |
Comments
Comment #1
Alfonso Knaf commentedI can confirm this bug. It is not more than an annoyance but it would be nice if there were a solution ;-)
Comment #2
jacobjanzen commentedI get the same problem in marvin theme.
Could this be fixed?
Thanks,
Jake
Comment #3
VDG commentedThe problem is the function theme_spam_link($content, $type = 'comment'), where the link is mangled through check_plain. Any further ideas?
Comment #4
mercmobily commentedHi,
Something weird: I installed a new site, and the problem doesn't seem to be there. Does this happen only with specific themes? Or when a site is imported?
Is anybody listening here?
Merc.
Comment #5
jaydub commentedin drupal 5.x the handling of links from hook_link has changed. If you want to show markup in the display portion of a link, you need to feed an element to the array passed to the l() function. If you add 'html' => TRUE to the array fed to l() your display will show markup.
see attached patch that fixed this issue in spam.module
Comment #6
jeremy commentedThanks jaydub, patch applied. I also fixed the link to go to the correct url.
Comment #7
mercmobily commentedHi,
Which version has the fix?
Merc.
Comment #8
(not verified) commented