MDL-54756 moodle_url: remove dangerous trim from make_file_url

This was a regression caused by MDL-50268. It broke qtype_stack.
This commit is contained in:
Tim Hunt
2016-05-27 21:30:34 +01:00
parent b1b097e2b6
commit 330216eb8a
-1
View File
@@ -760,7 +760,6 @@ class moodle_url {
if ($forcedownload) {
$params['forcedownload'] = 1;
}
$path = rtrim($path, '/');
$url = new moodle_url($urlbase, $params);
$url->set_slashargument($path);
return $url;