Page MenuHomePhorge

D25320.1737312769.diff
No OneTemporary

D25320.1737312769.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
Sun, Jan 19, 18:52 (18 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1114221
Default Alt Text
D25320.1737312769.diff (756 B)

Event Timeline