From 171e3470792831de5a59aa7057d6dc4636d58c47 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 2 Oct 2010 16:33:39 -0400 Subject: [PATCH] $purl['path'] might be an empty string, avoid warnings --- framework/Core/lib/Horde.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index b9032f025..2d0737565 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -956,7 +956,7 @@ HTML; $url = $protocol . '://' . $server_name; } - if (isset($puri['path']) && $puri['path'][0] == '/') { + if (isset($puri['path']) && substr($puri['path'], 0, 1) == '/') { $url .= $puri['path']; } else { $webroot = ltrim($GLOBALS['registry']->get('webroot', empty($opts['app']) ? null : $opts['app']), '/'); -- 2.11.0