From f02a8d73c717a6ed7e05c4b88e7afa8cbb4be81c Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 9 Mar 2011 16:36:29 +0100 Subject: [PATCH] fix check for path-value to avoid double-slash output, fixes #648 Signed-off-by: Michael Kaufmann (d00p) --- lib/functions/filedir/function.makePathfield.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/filedir/function.makePathfield.php b/lib/functions/filedir/function.makePathfield.php index df3615ae..ee3fba4e 100644 --- a/lib/functions/filedir/function.makePathfield.php +++ b/lib/functions/filedir/function.makePathfield.php @@ -42,7 +42,7 @@ function makePathfield($path, $uid, $gid, $fieldType, $value = '') // but dirList holds the paths with starting slash // so we just add one here to get the correct // default path selected, #225 - if ($value != '/') { + if (substr($value, 0, 1) != '/') { $value = '/'.$value; }