Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2008 at 18:54 UTC
Updated:
25 Sep 2012 at 10:27 UTC
In the print_mail_form_submit function, the message 'Thank you for spreading the word about !site' is output on a successful e-mail. Could the text of this message be made a configurable variable, to be set on the admin/settings/print/email form? I have several clients for whom this "spreading the word" text doesn't really apply to their sites target audiences.
Comments
Comment #1
Jeroen Coumans commentedYou can actually adjust this message by translating it using the localization module.
Comment #2
jcnventuraWhile the translation 'hack' it's a possibility, I don't think that most users will want to create a new language just to change the strings in this module..
I am planning to add some configuration fields in the settings form to make this user-configurable..
João
Comment #3
jcnventuraToday's dev versions will include the ability to change these strings in the e-mail settings page.
João
Comment #5
mikhailian commentedIs it really necessary to run check_plain on the message? I'd rather not.
Comment #6
jcnventuraConsidering that I had to create a Security release to add that check_plain, I'm afraid it really is necessary.
Comment #7
mikhailian commentedAFAICS, the security release talks about user-supplied variables, this is different . I may be mistaken, but it looks like you overreacted in that security release.
Comment #8
jcnventuraNo, that variable is exactly one of the 'user-supplied variables'. Feel free to browse the original vulnerability disclosure: http://www.madirish.net/236
You'll see the "The print module also contains a XSS vulnerability due to the fact that the 'site name' is not properly sanitized when displaying e-mail confirmation in the "Thank you for spreading the word about [site_name]" area. The print module also contains a XSS vulnerability due to the fact that it does not properly sanitize the 'Thank You Message:' input."
And seeing as you're posting this in the original request to make this confirmation message be user-configurable, it should be obvious that the fix is the proper one. In the 7.x-2.x branch, I actually dropped the ability to do this, considering that the String Overrides module allows the same functionality with none of the security hassles.