From 131cf0dd735a7bf6c10aca40a38a5d695b9984e5 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Wed, 18 Jul 2007 00:24:09 +0300 Subject: [PATCH] Win32: End local subdir HREFs with "/" not "\". The href attribute is supposed to be URL and so the directory separator should not depend on the conventions of the local operating system. --- src/protocol/file/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/file/file.c b/src/protocol/file/file.c index 44c995ac0..f5524fb99 100644 --- a/src/protocol/file/file.c +++ b/src/protocol/file/file.c @@ -102,7 +102,7 @@ add_dir_entry(struct directory_entry *entry, struct string *page, add_string_to_string(page, &uri_encoded_name); if (entry->attrib[0] == 'd') { - add_char_to_string(page, CHAR_DIR_SEP); + add_char_to_string(page, '/'); #ifdef FS_UNIX_SOFTLINKS } else if (entry->attrib[0] == 'l') {