From 16651cf8f752d9f5b3bf87a0edfc265afaf19e32 Mon Sep 17 00:00:00 2001 From: dignajar Date: Fri, 13 Nov 2015 20:41:30 -0300 Subject: [PATCH] Fixes for relative paths for Windows Web Servers --- kernel/boot/init.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/boot/init.php b/kernel/boot/init.php index 8bb47f1f..ccef230e 100644 --- a/kernel/boot/init.php +++ b/kernel/boot/init.php @@ -147,13 +147,16 @@ $Parsedown = new Parsedown(); $Security = new Security(); // HTML PATHs -//$base = (dirname(getenv('SCRIPT_NAME'))==DS)?'/':dirname(getenv('SCRIPT_NAME')).'/'; $base = empty( $_SERVER['SCRIPT_NAME'] ) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']; $base = dirname($base); if($base!=DS) { $base = $base.'/'; } +else { + // Workaround for Windows Web Servers + $base = '/'; +} define('HTML_PATH_ROOT', $base);