summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-26 20:35:22 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-26 20:35:22 +0000
commitae524b8b116a6243aeddc15e53533da069fbf918 (patch)
tree2a79cc01e1da725b5be1c3908753cc33c227034a /net
parent7aa58f2b4d950ef8c77a2b80184e5ff29dea476c (diff)
downloadchromium_src-ae524b8b116a6243aeddc15e53533da069fbf918.zip
chromium_src-ae524b8b116a6243aeddc15e53533da069fbf918.tar.gz
chromium_src-ae524b8b116a6243aeddc15e53533da069fbf918.tar.bz2
POSIX: Don't convert backslashes in filenames into forward slashes.
BUG=19436 Review URL: http://codereview.chromium.org/173426 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24517 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/base/net_util.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/base/net_util.cc b/net/base/net_util.cc
index d679e14..3b6349f 100644
--- a/net/base/net_util.cc
+++ b/net/base/net_util.cc
@@ -781,6 +781,11 @@ GURL FilePathToFileURL(const FilePath& path) {
ReplaceSubstringsAfterOffset(&url_string, 0,
FILE_PATH_LITERAL("#"), FILE_PATH_LITERAL("%23"));
+#if defined(OS_POSIX)
+ ReplaceSubstringsAfterOffset(&url_string, 0,
+ FILE_PATH_LITERAL("\\"), FILE_PATH_LITERAL("%5C"));
+#endif
+
return GURL(url_string);
}