summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 23:16:25 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 23:16:25 +0000
commitb7bd7a4aec87253850d6702248874dabfb0ffa03 (patch)
tree6dcd792280b87f27bd346839a7a9447a38c19b0d /net
parent1b951f98b5d86ed9ba82555566627017211ad9d4 (diff)
downloadchromium_src-b7bd7a4aec87253850d6702248874dabfb0ffa03.zip
chromium_src-b7bd7a4aec87253850d6702248874dabfb0ffa03.tar.gz
chromium_src-b7bd7a4aec87253850d6702248874dabfb0ffa03.tar.bz2
Correctly join paths in FTP directory listing.
TEST=See bug. http://crbug.com/20232 Review URL: http://codereview.chromium.org/174406 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24366 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/base/dir_header.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/base/dir_header.html b/net/base/dir_header.html
index afdfcf2..8e885e2 100644
--- a/net/base/dir_header.html
+++ b/net/base/dir_header.html
@@ -12,7 +12,7 @@ function addRow(name, url, isdir, size, date_modified) {
var file_cell = document.createElement("td");
var link = document.createElement("a");
if (name == "..") {
- link.href = "..";
+ link.href = document.location + "/..";
link.innerText = document.getElementById("parentDirText").innerText;
size = "";
date_modified = "";
@@ -23,7 +23,7 @@ function addRow(name, url, isdir, size, date_modified) {
size = "";
}
link.innerText = name;
- link.href = "./" + url;
+ link.href = document.location + "/" + url;
}
file_cell.appendChild(link);