Needs review
Project:
jPlayer
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2012 at 14:29 UTC
Updated:
7 May 2015 at 01:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedThis patch removes the
strip_tags()function and makes thel()function recognise HTML tags in the playlist link.Working for me, but I'm only using playlists from views, so others should make sure it works in their situations too.
Comment #2
markie commentedShort story long, that is a security issue that won't be supported. I've had modules shut down due to improper trimming. Sorry, but I can not facilitate your request. You could update the jplayer.js to add or wrap a class in the playlist items.
Comment #3
Anonymous (not verified) commentedBy 'security issue' I assume you're referring to the 'html' option for the
l()function which says:If that's the case, can't we just use one of the sanitization functions (one that keeps HTML tags intact)? I'm not up on sanitization and security, so am not sure which function, but surely one of them will let us safely include HTML tags (e.g. divs, spans) in a link...
Comment #4
Anonymous (not verified) commentedI needed to update this module, but when I did the patch no longer applied. I therefore figured this'd be a good time to address the concern in #2.
This new patch uses filter_xss() (instead of strip_tags()) and adds 'div' and 'span' to the list of allowed tags.