addcslashes to .info
droplet - November 3, 2009 - 03:28
| Project: | Translation template extractor |
| Version: | 6.x-3.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | needs review |
Description
There isn't addcslashes to .info stings, is it by design ? (Command line extraction)
example:
#: active_n_rebuild/active_n_rebuild.info:0
msgid "[EN] Table-based multi-column extended theme (for Web developers).<br />Work with PHP5 (PHP4 - with no waranty).<br />Copyright © 2009 <a href="http://lynxlab.net" title="Open Lynxlab project (in a new window)" target="_blank">Lynxlab.net</a>"
msgstr ""
#1
Wow, we definitely did not expect people to put HTML into their descriptions. Looks like this needs to be fixed indeed.
#2
Zen has been doing this for quite a while. :-D
The theme description links to the online documentation.
#3
Ok, I've looked at the existing code, and not at all sure why it uses
<?phpaddcslashes($value, "\0..\37\\\"")
?>
Please test and review so we can fix this issue.