commit 31e63c6358856aa7a07e676a8c8300218386324f
Author: Mike Kelly <email address hidden>
Date: Thu Dec 4 15:24:48 2014 +0000
Fix PDFs SAMEORIGIN error when using subdomains (Bug #1399246)
X-Frame SAMEORIGIN error is thrown when viewing an embedded PDF on a
user's View, if Mahara is set up to use subdomains.
This is because the current page url has the subdomain part, but the PDF
iframe does not. Group views and page editing interface are not
affected.
This patch adds the subdomain part to the iframe url, and the PDF url,
as required.
Change-Id: I7e5856d8cfcd6ac7e2df71859c1b18d3f561bfd1
Signed-off-by: Mike Kelly <email address hidden>
Reviewed: https:/ /reviews. mahara. org/4061 gitorious. org/mahara/ mahara/ commit/ 31e63c6358856aa 7a07e676a8c8300 218386324f
Committed: http://
Submitter: Aaron Wells (<email address hidden>)
Branch: master
commit 31e63c6358856aa 7a07e676a8c8300 218386324f
Author: Mike Kelly <email address hidden>
Date: Thu Dec 4 15:24:48 2014 +0000
Fix PDFs SAMEORIGIN error when using subdomains (Bug #1399246)
X-Frame SAMEORIGIN error is thrown when viewing an embedded PDF on a
user's View, if Mahara is set up to use subdomains.
This is because the current page url has the subdomain part, but the PDF
iframe does not. Group views and page editing interface are not
affected.
This patch adds the subdomain part to the iframe url, and the PDF url,
as required.
Change-Id: I7e5856d8cfcd6a c7e2df71859c1b1 8d3f561bfd1
Signed-off-by: Mike Kelly <email address hidden>