Version 0.9 ()
------------------------------------------------------------------------
+ * Patch/Bug #1209410 by swiesinger: When using shortcut admin URL,
+ use https:// when specified by user
+
* Added swedish translation by Torbjörn Hedberg, Added european
portugues translation by Joao Palhoto Matos, Added hungarian
translation by Posz Marton
print $data;
exit;
} else if (preg_match(PAT_ADMIN, $uri)) {
- header("Location: {$serendipity['baseURL']}serendipity_admin.php");
+ $base = $serendipity['baseURL'];
+ if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
+ $base = str_replace('http://', 'https://', $base);
+ }
+ header("Location: {$base}serendipity_admin.php");
exit;
} else if (preg_match(PAT_ARCHIVE, $uri)) {
$serendipity['GET']['action'] = 'archives';