mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 08:09:47 +02:00
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:
parent
6a74e76fb8
commit
31c07476db
1 changed files with 0 additions and 1 deletions
|
@ -760,7 +760,6 @@ class moodle_url {
|
||||||
if ($forcedownload) {
|
if ($forcedownload) {
|
||||||
$params['forcedownload'] = 1;
|
$params['forcedownload'] = 1;
|
||||||
}
|
}
|
||||||
$path = rtrim($path, '/');
|
|
||||||
$url = new moodle_url($urlbase, $params);
|
$url = new moodle_url($urlbase, $params);
|
||||||
$url->set_slashargument($path);
|
$url->set_slashargument($path);
|
||||||
return $url;
|
return $url;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue