From 79b37009fccccab910aa26759f0e3a38d838e478 Mon Sep 17 00:00:00 2001 From: skodak Date: Fri, 30 Jun 2006 11:56:37 +0000 Subject: [PATCH] fixed // in course root when browsing files; merged from MOODLE_16_STABLE --- files/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/index.php b/files/index.php index fbcd8e9a29..76e455472f 100644 --- a/files/index.php +++ b/files/index.php @@ -769,9 +769,9 @@ function displaydir ($wdir) { print_cell("center", "", 'checkbox'); echo ""; if ($CFG->slasharguments) { - $ffurl = "/file.php/$id/$fileurl"; + $ffurl = str_replace('//', '/', "/file.php/$id/$fileurl"); } else { - $ffurl = "/file.php?file=/$id/$fileurl"; + $ffurl = str_replace('//', '/', "/file.php?file=/$id/$fileurl"); } link_to_popup_window ($ffurl, "display", "pixpath/f/$icon\" height=\"16\" width=\"16\" border=\"0\" alt=\"File\" />", -- 2.39.5