e107
e107 copied to clipboard
Download plugin - apostrophes getting saved to HTML code
When I update a download's title or filename and include a ' the db entry is stored as
download_name download_url
Nobody's Fool /Movies/Nobody's Fool.rar
The problem with this is that the actual file name on the server is /Movies/Nobody's Fool.rar, so it can't find the download.
Now if I edit the db entry directly and change remove the HTML code entry and just use a ', the download works, however, the admin area is cutting off everything after the '
@mostym Does this work if you enter the full URL? with http://www.
?
I noticed this with another plugin too.
If db field contains text with '
(for example serialized array to string) and it's opened in Admin UI as text box, data string, and saved (without any change) - in my case by mistake, it shouldn't be editable at all, it is saved with '
instead ' (and then unserialize fails).
@Moc Perhaps a missing toText()
or toHTML()
somewhere?