From 664b337bba51927b393f3d1047e01bc715d01727 Mon Sep 17 00:00:00 2001 From: Tomasz Marciniak Date: Fri, 27 May 2016 14:39:32 +0200 Subject: [PATCH] [FileSystem] Remove code for cutting last '/' [Verification] Code compiles. FileSystem tct pass rate 100% Security tct related to paths pass. Change-Id: Ib1b90f6224e9909f9d1f4206b72fde08b88d3767 Signed-off-by: Tomasz Marciniak --- src/filesystem/js/common.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/filesystem/js/common.js b/src/filesystem/js/common.js index 9e99384a..15cc6973 100644 --- a/src/filesystem/js/common.js +++ b/src/filesystem/js/common.js @@ -240,10 +240,6 @@ var commonFS_ = (function() { // if path is valid try to cut last '/' if it is present if (_fileRealPath) { _fileRealPath = mergeMultipleSlashes(_fileRealPath); - var lastCharIndex = _fileRealPath.length-1; - if (_fileRealPath[lastCharIndex] === '/') { - _fileRealPath = _fileRealPath.substr(0,lastCharIndex); - } } return _fileRealPath; } -- 2.34.1