]> git.mjollnir.org Git - s9y.git/commitdiff
replace '\' windows paths with '/' when forwarding.
authorgarvinhicking <garvinhicking>
Mon, 18 Apr 2005 11:18:11 +0000 (11:18 +0000)
committergarvinhicking <garvinhicking>
Mon, 18 Apr 2005 11:18:11 +0000 (11:18 +0000)
serendipity_config.inc.php

index f9df9f210d8bae3430d5864ba9d2b969c9ec4115..a9131146358bd583943e998e5df6e4d6edf0de7f 100644 (file)
@@ -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'));
 }