e107 icon indicating copy to clipboard operation
e107 copied to clipboard

Download plugin - apostrophes getting saved to HTML code

Open mostym opened this issue 6 years ago • 3 comments

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 '

image

mostym avatar Feb 12 '19 22:02 mostym

@mostym Does this work if you enter the full URL? with http://www. ?

Moc avatar Dec 03 '19 15:12 Moc

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).

Jimmi08 avatar Feb 05 '20 21:02 Jimmi08

@Moc Perhaps a missing toText() or toHTML() somewhere?

CaMer0n avatar Jun 01 '20 19:06 CaMer0n