Closed (fixed)
Project:
Gallery
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2005 at 07:53 UTC
Updated:
11 Oct 2005 at 22:40 UTC
The module works perfectly if you are using normal link. However, Gallery could not be loaded correctly. The log always complains:
"https:/192.168.0.2/gallery2/images/xhtml10.png not found."
Please be aware there was one "black slash" missing.
If this is a typo in the module?
Thanks
Comments
Comment #1
npe commentedI fixed this problem.
In function _gallery_init, look for line:
$embedPath = str_replace('http://' .....
Replace it with:
$embedPath = str_replace('http' . ($_SERVER['HTTPS'] == 'on' ? 's' : '') . '://' . $_SERVER['HTTP_HOST'], '', $base_url) . '/';
This can solve the problem.
Regards
Comment #2
pitpit commentedit could be better to test $_SERVER['HTTPS'] before retrieve it, like this
Comment #3
(not verified) commented