From: skodak Date: Fri, 30 Jun 2006 11:56:37 +0000 (+0000) Subject: fixed // in course root when browsing files; merged from MOODLE_16_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=79b37009fccccab910aa26759f0e3a38d838e478;p=moodle.git fixed // in course root when browsing files; merged from MOODLE_16_STABLE --- 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\" />",