CMS MADE SIMPLE FORGE

Gallery

 

[#7782] doesn't work with ssl without generating warnings

avatar
Created By: Mark Steer (markSt)
Date Submitted: Wed Apr 04 12:07:08 -0400 2012

Assigned To: Jos (josvd)
Version: 1.5.3
CMSMS Version: 1.10.3
Severity: Major
Resolution: None
State: Open
Summary:
doesn't work with ssl without generating warnings
Detailed Description:
Hello,

I've got a site where the http & https pages are mixed throughout.  On the https
pages the url you construct for the template stylesheets is hardcoded to use
$config['root_url'], which makes many browsers complain.

I've temporarily worked around this by removing  the root_url value entirely and
allow the browser to work it out.  For example, from action.showrandom.php line
205-211:

// check if a css file exists and echo
if ( file_exists("modules/Gallery/templates/css/" . $template . ".css") )
{
//removed ' . $config['root_url'] . '
$template_metadata .= '<link rel="stylesheet"
href="/modules/Gallery/templates/css/' . $template . '.css" type="text/css"
media="screen" />
';
}

Maybe you can consider removing these hardcoded values where they appear and
allowing your fantastic module to work more easily with ssl enabled sites?

Many thanks,


Mark.


History