From f7c8ca1c175dd1191e118498ffc34fc611bfea69 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 18 Apr 2005 11:18:11 +0000 Subject: [PATCH] replace '\' windows paths with '/' when forwarding. --- serendipity_config.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); } -- 2.39.5