From 7ea378088635d763c98b71487e542320f80e5188 Mon Sep 17 00:00:00 2001 From: Pawel Andruszkiewicz Date: Mon, 21 Dec 2015 15:12:04 +0100 Subject: [PATCH] [File] Make sure that File.fullPath always starts with '/'. [Verification] 140 specs, 0 failures, 1 pending spec. All manual tests pass. Change-Id: I0bc3754d5a5994977100b7796140df5fd8315576 Signed-off-by: Pawel Andruszkiewicz --- src/file/js/rootsUtils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/file/js/rootsUtils.js b/src/file/js/rootsUtils.js index ef273b1..e673da5 100644 --- a/src/file/js/rootsUtils.js +++ b/src/file/js/rootsUtils.js @@ -34,6 +34,9 @@ var rootsUtils = (function() { if (!tmp) { tmp = '/'; } + if ('/' !== tmp[0]) { + tmp = '/' + tmp; + } return tmp; } -- 2.34.1