• Mike Kelly's avatar
    Fix PDFs SAMEORIGIN error when using subdomains (Bug #1399246) · 31e63c63
    Mike Kelly authored
    
    
    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: default avatarMike Kelly <m.f.kelly@arts.ac.uk>
    31e63c63
lib.php 4.46 KB