mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #13080
[Bug 1207140] A change has been merged
Reviewed: https://reviews.mahara.org/2405
Committed: http://gitorious.org/mahara/mahara/commit/e1d79eceef5ff7ff938f5153fca895ef8e5c6d1f
Submitter: Aaron Wells (aaronw@xxxxxxxxxxxxxxx)
Branch: master
commit e1d79eceef5ff7ff938f5153fca895ef8e5c6d1f
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date: Wed Aug 14 12:17:05 2013 +1200
New fix for the YouTube issue (bug #1207140)
This time around instead of changing the protocol-relative URLs
to be matching the protocol of what Mahara is using I've changed
how html purifier checks iframes to allow protocol-relative URLs.
Change-Id: I2a9436ecf3f6046acdefce8ac7751c12ad2bbf9d
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Signed-off-by: Aaron Wells <aaronw@xxxxxxxxxxxxxxx>
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contrib members
https://bugs.launchpad.net/bugs/1207140
Title:
YouTube iframe filter doesn't support the //youtube.com URLs YouTube
now provides in embed code
Status in Mahara ePortfolio:
In Progress
Status in Mahara 1.6 series:
In Progress
Status in Mahara 1.7 series:
In Progress
Status in Mahara 1.8 series:
Fix Committed
Bug description:
In response to FireFox's change in not supporting iframes with a
http/https protocol that doesn't match the protocol of the parent
page, YouTube's embed code now lists protocol-relative URLs. These
start with "//www.youtube.com", no "http://". This is a standard type
of relative URL/URI, but our code doesn't support it.
Since we already store the allowed iframe domains without a protocol
in front of them, we should also support these protocol-relative URLs.
To replicate:
1. Open up a YouTube video on youtube.com
2. Click "Share" and then "Embed"
3. Make sure you have NOT ticked the "Use old embed code" box
4. You should get an iframe embed code, like this: <iframe width="420" height="315" src="//www.youtube.com/embed/NkyEOrQiGMQ" frameborder="0" allowfullscreen></iframe>
5. Paste this into an external media block or a text block in Mahara
Expected result: You should be able to view the video once you've saved the block
Actual result: The block will not display the video
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1207140/+subscriptions
References