Page MenuHomePhorge

D25320.1736867233.diff
No OneTemporary

D25320.1736867233.diff

diff --git a/webroot/rsrc/js/application/diffusion/DiffusionLocateFileSource.js b/webroot/rsrc/js/application/diffusion/DiffusionLocateFileSource.js
--- a/webroot/rsrc/js/application/diffusion/DiffusionLocateFileSource.js
+++ b/webroot/rsrc/js/application/diffusion/DiffusionLocateFileSource.js
@@ -99,6 +99,10 @@
return [];
}
+ // Be nice with terminal users that may have "./" or "/" prefixes.
+ // Otherwise, not a single result is returned.
+ search = search.replace(/^\.?\//, '');
+
// We know that the results for "abc" are always a subset of the results
// for "a" and "ab" -- and there's a good chance we already computed
// those result sets. Find the longest cached result which is a prefix

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 14, 15:07 (3 d, 21 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1114221
Default Alt Text
D25320.1736867233.diff (756 B)

Event Timeline