h5p, sharestream, kaltura antisamy whitelists aren't working

Description

h5p, sharestream, kaltura antisamy whitelists aren't working

even though those sites are added to the antisamy/high-security-policy.xml whitelist, embedding their embed codes in e.g. lessons does not work

Actually, I could not test sharestream because I don't have an account with them, but it appears as though it would be affected by the bug as well.

it fails on https://trunk-mysql.nightly.sakaiproject.org/

 

Activity

Show:

Austin May 4, 2018 at 8:35 PM
Edited

I believe the problem occurs because the regex for these sites in the antisamy/high-security-policy.xml whitelist is using delimited trailing forward slashes

(.*)\.sharestream\.(com|net)\/
(.*)\.kaltura\.(com|net)\/
h5p\.(com|org)\/

removing the delimited trailing forward slashes appears to fix the problem (could possibly just remove the delimiter, but I believe removing both works as well.

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created May 4, 2018 at 8:30 PM
Updated March 12, 2024 at 3:52 PM
Resolved May 8, 2018 at 9:31 AM