Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: net/base/directory_lister.cc

Issue 2640073003: WIP: Skip symbolic links in file:// URLs. (Closed)
Patch Set: WIP: Skip symbolic linkx in file:// URLs. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/directory_lister.cc
diff --git a/net/base/directory_lister.cc b/net/base/directory_lister.cc
index 532ee5db5f8826e6b967e6a8706d39b3ab45aa7d..0eeb8c427a938ab3728d4f12ac72b13e4eb2e395 100644
--- a/net/base/directory_lister.cc
+++ b/net/base/directory_lister.cc
@@ -138,6 +138,9 @@ void DirectoryLister::Core::Start() {
if (IsCancelled())
return;
+ if (base::IsLink(path))
+ continue;
+
DirectoryListerData data;
data.info = file_enum.GetInfo();
data.path = path;
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698