Closed (works as designed)
Project:
Flag
Version:
7.x-2.0-beta6
Component:
Token integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Oct 2011 at 13:17 UTC
Updated:
9 Dec 2012 at 14:15 UTC
I have created a flag 'publish', which obviously publishes a created node when clicked. I then use rules to send an email with the flag-link ([node:flag-publish-link]), so the user can click the link in the mail and publish the node.
However, in the mail the link replaces '&' with '&', which creates an invalid link. On the site itself the link is correct, even when I make a rule to generate a system message with the same value ([node:flag-publish-link]) as the mail link.
Why is this happening and how can I solve it? I really need people to click the link in the mail, not on the site.
Comments
Comment #1
fagoA short look at flag module's token implementation reveals that it doesn't respect the token 'sanitize' option.
Comment #2
quicksketchYou're right that we don't look at the sanitize parameter, because the link and count should never be sanitized:
So it looks to me like if anything the link is getting sanitized after the token itself is generated, because whether $sanitize is TRUE or FALSE, we don't sanitize it either way because it's already assumed to be safe output.
Comment #3
joachim commentedClosing in light of above comment.
Comment #3.0
joachim commentedAdded code tag