Welcome Guest, Not a member yet? Register   Sign In
XSS replaces in the documentation
#8

It is always awkward with user links like that. I would get the user to input the video code and the poster file separately, and build the video html around those two bits of data in the view.
But if you want users to post html directly copied from say YouTube, you may have to have a moderation queue where the link can be checked first. XSS clean will take all the html coding away and replace with html entities like you have seen.

Not entirely sure what the best way forward is on an example like that. If only admins are using it I think you would be safe enough (trusted users) but I would not let any user post HTML video links like that without moderating in some way. You never know what might be being posted.

Paul.
Reply


Messages In This Thread
XSS replaces in the documentation - by Elias - 02-02-2018, 11:57 AM
RE: XSS replaces in the documentation - by Elias - 02-10-2018, 12:46 PM
RE: XSS replaces in the documentation - by falko - 02-10-2018, 11:23 PM
RE: XSS replaces in the documentation - by PaulD - 02-11-2018, 04:08 AM
RE: XSS replaces in the documentation - by Elias - 02-11-2018, 09:57 AM
RE: XSS replaces in the documentation - by PaulD - 02-11-2018, 11:15 AM
RE: XSS replaces in the documentation - by Narf - 02-12-2018, 06:24 AM
RE: XSS replaces in the documentation - by Elias - 02-12-2018, 07:21 AM
RE: XSS replaces in the documentation - by Narf - 02-14-2018, 11:28 AM
RE: XSS replaces in the documentation - by Elias - 02-15-2018, 08:01 AM
RE: XSS replaces in the documentation - by Narf - 02-22-2018, 01:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB