From: garvinhicking Date: Mon, 18 Apr 2005 11:18:11 +0000 (+0000) Subject: replace '\' windows paths with '/' when forwarding. X-Git-Tag: 0.8.1~30^2~32 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f7c8ca1c175dd1191e118498ffc34fc611bfea69;p=s9y.git replace '\' windows paths with '/' when forwarding. --- diff --git a/serendipity_config.inc.php b/serendipity_config.inc.php index f9df9f2..a913114 100644 --- a/serendipity_config.inc.php +++ b/serendipity_config.inc.php @@ -158,7 +158,7 @@ include($serendipity['serendipityPath'] . 'include/lang.inc.php'); * Kill the script if we are not installed, and not inside the installer */ if ( !defined('IN_installer') && IS_installed === false ) { - header('Location: ' . ($_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_admin.php'); + header('Location: ' . ($_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . str_replace('\\', '/', dirname($_SERVER['PHP_SELF'])) . '/serendipity_admin.php'); serendipity_die(sprintf(SERENDIPITY_NOT_INSTALLED, 'serendipity_admin.php')); }