Commit 90a79254 authored by adamk@chromium.org's avatar adamk@chromium.org

Display only the sandboxed portion of the URL when listing

a filesystem: URL that refers to a directory.

This avoids leaking implementation details of the sandboxed filesystem.

Review URL: http://codereview.chromium.org/6537011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75329 0039d316-1c4b-4281-b951-d872f2087c98
parent c7a56cd9
......@@ -116,12 +116,12 @@ void FileSystemDirURLRequestJob::DidReadDirectory(
}
#if defined(OS_WIN)
const string16& title = absolute_dir_path_.value();
const string16& title = relative_dir_path_.value();
#elif defined(OS_POSIX)
const string16& title = WideToUTF16(
base::SysNativeMBToWide(absolute_dir_path_.value()));
base::SysNativeMBToWide(relative_dir_path_.value()));
#endif
data_.append(net::GetDirectoryListingHeader(title));
data_.append(net::GetDirectoryListingHeader(ASCIIToUTF16("/") + title));
typedef std::vector<base::FileUtilProxy::Entry>::const_iterator EntryIterator;
for (EntryIterator it = entries.begin(); it != entries.end(); ++it) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment