I wounded my eyes since yesterday to find an issue I might have produced by porting this to smarty, but could not find any...
It's really twisted. I'll try to find it now and write it down here as i go.
http://www.example.com/serendipity/ is the default of defaultBaseURL, defined in config-local.inc.php. This gets called in the installer.inc.php by
Code: Select all
$config = serendipity_parseTemplate(S9Y_CONFIG_TEMPLATE);
because of
Code: Select all
/var/www/serendipity_config.inc.php:define('S9Y_CONFIG_TEMPLATE', S9Y_INCLUDE_PATH . 'include/tpl/config_local.inc.php');
serendipity_printConfigTemplate (in functions_installer.inc.php) is called afterwards, which itself calls serendipity_query_default. There is the relevant code which seems to be the old auto-detection:
Code: Select all
case 'baseURL':
$ssl = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on';
$port = $_SERVER['SERVER_PORT'];
return sprintf('http%s://%s%s%s',
$ssl ? 's' : '',
preg_replace('@^([^:]+):?.*$@', '\1', $_SERVER['HTTP_HOST']),
(($ssl && $port != 443) || (!$ssl && $port != 80)) ? (':' . $port) : '',
rtrim(dirname($_SERVER['PHP_SELF']), '/') .'/'
);
But nothing for serendipity['defaultBaseURL'].
So you're right, that's probably the issue here, a bug in master. It's probably fix enough to add
above