mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #17324
[Bug 1286935] [NEW] Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
Public bug reported:
See https://mahara.org/interaction/forum/topic.php?id=6124
In the Mahara forums, a user reported this issue with an embed code for
hapyak.com. The full embed code:
<iframe
src="//hapyak.com?embed=true&edit=false&startInEditMode=false&track=15572&project=3162&key=2a69d0613a6a43b5a613&source=youtube&source_id=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNWjso1EqSXc&controls=true&nativeControls=false&reset_variables=true&autoplay=false&aspect_ratio=1.3328"
class="hapyak-embed" marginwidth="0" marginheight="0" allowfullscreen=""
webkitallowfullscreen="" mozallowfullscreen="" frameborder="no"
height="699" scrolling="no" width="853"></iframe>
Note that the URL starts with "//hapyak.com?embed=true...". If you
change that to "//hapyak.com/?embed=true..." then it works. It looks
like the problem is that the regular expression we use to identify
iframes with a valid URL, doesn't handle the scenario of a URL where
there's a query component but no path component. In other words, a "?"
immediately after the domain name.
** Affects: mahara
Importance: Medium
Assignee: Aaron Wells (u-aaronw)
Status: Confirmed
** Tags: externalvideo iframes
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1286935
Title:
Allowed iframe check doesn't handle URLs with a question mark
immediately after the domain name
Status in Mahara ePortfolio:
Confirmed
Bug description:
See https://mahara.org/interaction/forum/topic.php?id=6124
In the Mahara forums, a user reported this issue with an embed code
for hapyak.com. The full embed code:
<iframe
src="//hapyak.com?embed=true&edit=false&startInEditMode=false&track=15572&project=3162&key=2a69d0613a6a43b5a613&source=youtube&source_id=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNWjso1EqSXc&controls=true&nativeControls=false&reset_variables=true&autoplay=false&aspect_ratio=1.3328"
class="hapyak-embed" marginwidth="0" marginheight="0"
allowfullscreen="" webkitallowfullscreen="" mozallowfullscreen=""
frameborder="no" height="699" scrolling="no" width="853"></iframe>
Note that the URL starts with "//hapyak.com?embed=true...". If you
change that to "//hapyak.com/?embed=true..." then it works. It looks
like the problem is that the regular expression we use to identify
iframes with a valid URL, doesn't handle the scenario of a URL where
there's a query component but no path component. In other words, a "?"
immediately after the domain name.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1286935/+subscriptions
Follow ups
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Aaron Wells, 2015-04-20
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Robert Lyon, 2015-04-20
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Son Nguyen, 2015-04-19
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Robert Lyon, 2015-04-17
-
[Bug 1286935] A change has been merged
From: Mahara Bot, 2015-04-16
-
[Bug 1286935] A change has been merged
From: Mahara Bot, 2015-04-16
-
[Bug 1286935] A patch has been submitted for review
From: Mahara Bot, 2015-04-16
-
[Bug 1286935] A patch has been submitted for review
From: Mahara Bot, 2015-04-16
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Robert Lyon, 2015-04-16
-
[Bug 1286935] A change has been merged
From: Mahara Bot, 2015-04-16
-
[Bug 1286935] A patch has been submitted for review
From: Mahara Bot, 2015-04-16
-
[Bug 1286935] A change has been merged
From: Mahara Bot, 2015-04-16
-
[Bug 1286935] A patch has been submitted for review
From: Mahara Bot, 2015-04-16
-
[Bug 1286935] A change has been merged
From: Mahara Bot, 2015-04-16
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Robert Lyon, 2015-04-16
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Robert Lyon, 2015-04-15
-
[Bug 1286935] A patch has been submitted for review
From: Mahara Bot, 2015-04-15
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Aaron Wells, 2015-01-12
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Robert Lyon, 2014-11-25
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Son Nguyen, 2014-11-25
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Robert Lyon, 2014-11-25
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Son Nguyen, 2014-10-22
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Robert Lyon, 2014-10-22
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Aaron Wells, 2014-09-09
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Robert Lyon, 2014-07-31
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Robert Lyon, 2014-05-13
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Aaron Wells, 2014-05-07
-
[Bug 1286935] Re: Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Robert Lyon, 2014-04-03
-
[Bug 1286935] [NEW] Allowed iframe check doesn't handle URLs with a question mark immediately after the domain name
From: Aaron Wells, 2014-03-02
References