Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2896071
D25320.1737239369.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
756 B
Referenced Files
None
Subscribers
None
D25320.1737239369.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 18, 22:29 (10 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1114221
Default Alt Text
D25320.1737239369.diff (756 B)
Attached To
Mode
D25320: Locate File: allow to search './path/to/something.txt'
Attached
Detach File
Event Timeline
Log In to Comment