NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015534phplist applicationMessage Send Processpublic24-08-10 23:3422-05-12 16:14
PlatformOSOS Version
Product Version2.11.5 
Target Version4.0.xFixed in Version2.11.7 
Summary0015534: Newlines in footer converted to "rn" in text input box when saving a new message
DescriptionWhen a new message draft is saved, newlines are converted to "rn". Presumably there is a bug somewhere with escaping.

Steps To Reproduce1. From the admin page, start a new campaign. Message footer should appear correctly in text input box.
2. "Save Changes."
3. Footer in text box now appears all on one line, with newlines replaced with "rn".
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to 0015522resolvedmichiel Cannot select a destination list 

-  Notes
jeremyw (reporter)
25-08-10 05:00

It may be relevant that in my PHP environment, magic_quotes_gpc = false.
jeremyw (reporter)
25-08-10 07:30

Yes, it's a problem resulting from having magic quotes off. Leaving them off, I tried commenting out the sql_escape() line in admin/lib.php (line 62), and the message footer saved correctly.

Not sure what the best course of action is here for a permanent solution.
jeremyw (reporter)
25-08-10 15:16

Further to my last note, I *think* the sql_escape() line in setMessageData() in admin/lib.php (line 62) can be safely removed, because the data it escapes is escaped again when it is used later in the function by Sql_Replace() (line 90).

Removing sql_escape() at line 62 also renders the patch I provided for issue #0015522 ( [^]) unnecessary.

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker