Skip to content

Commit

Permalink
MDL-54756 moodle_url: remove dangerous trim from make_file_url
Browse files Browse the repository at this point in the history
This was a regression caused by MDL-50268. It broke qtype_stack.
  • Loading branch information
timhunt committed May 27, 2016
1 parent b1b097e commit 330216e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/weblib.php
Expand Up @@ -760,7 +760,6 @@ public static function make_file_url($urlbase, $path, $forcedownload = false) {
if ($forcedownload) {
$params['forcedownload'] = 1;
}
$path = rtrim($path, '/');
$url = new moodle_url($urlbase, $params);
$url->set_slashargument($path);
return $url;
Expand Down

0 comments on commit 330216e

Please sign in to comment.