From bc74a44cbc7ce5b80e66d5b68eb32b50d1357950 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= <danxuliu@gmail.com>
Date: Fri, 21 Dec 2018 20:15:15 +0100
Subject: [PATCH] Fix opening search results for comments
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

"OC.dirname" removes everything after the last "/", so a path without
slashes is returned without changes. "result.path" does not include
leading nor trailing "/", so when the path is for a file or folder in
the base folder "OC.dirname(result.path)" returns "result.path".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
---
 apps/comments/js/search.js | Bin 3567 -> 3710 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/apps/comments/js/search.js b/apps/comments/js/search.js
index 11a965945802e8cf9d8188022607beaa2e957def..8e0a35ff6edd9174c33c3b5c04c21d32c9bb9dc1 100644
GIT binary patch
delta 171
zcmX}mu?@m76a>(QCNKgBom^2MXM$7=kQpreO)MFI^!;745)!*G0X-WaoD^Jj#p&rj
z+wbo2>h66HBUEZqdviJ&c&38PikQ!-dV)hD=VQLW^yY}dFyqPkDA`@fth<(m2x*mE
tpc7$+5VcSW2rLLOHFGYUJV|NvvJ>XL+C_)~hel!;hDQDGJm1}B^#gOrI8y)s

delta 27
icmew-^Im$xHBP?FGzE>6%pwI_TU!Nn_07dx+$;c*#0Z=K

-- 
GitLab