From 90a792541bf27389f57427bf838350b3aaa03608 Mon Sep 17 00:00:00 2001 From: "adamk@chromium.org" Date: Thu, 17 Feb 2011 23:30:25 +0000 Subject: 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 --- webkit/fileapi/file_system_dir_url_request_job.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'webkit/fileapi') diff --git a/webkit/fileapi/file_system_dir_url_request_job.cc b/webkit/fileapi/file_system_dir_url_request_job.cc index 73b1fa4..d61dac0 100644 --- a/webkit/fileapi/file_system_dir_url_request_job.cc +++ b/webkit/fileapi/file_system_dir_url_request_job.cc @@ -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::const_iterator EntryIterator; for (EntryIterator it = entries.begin(); it != entries.end(); ++it) { -- cgit v1.1