MDL-11342: Urlencode the filepath in directory resource (merge from 1.8)
This commit is contained in:
@@ -126,12 +126,7 @@ function display() {
|
||||
|
||||
} else {
|
||||
$icon = mimeinfo("icon", $file);
|
||||
|
||||
if ($CFG->slasharguments) {
|
||||
$relativeurl = "/file.php/$relativepath/$file";
|
||||
} else {
|
||||
$relativeurl = "/file.php?file=/$relativepath/$file";
|
||||
}
|
||||
$relativeurl = get_file_url("$relativepath/$file");
|
||||
$filesize = display_size(filesize("$CFG->dataroot/$relativepath/$file"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user