Permalink
Browse files

Merge branch 'MDL-36754-master' of git://github.com/andrewnicols/moodle

  • Loading branch information...
dmonllao committed Aug 14, 2018
2 parents 3ff9233 + 2e8d476 commit 8e6c2ce30020ea20c86b0cf01677d4fa3ae1efe6
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/filelib.php
@@ -481,6 +481,7 @@ function file_rewrite_pluginfile_urls($text, $file, $contextid, $component, $fil
$finalfile = basename($file);
$tokenfile = "token{$finalfile}";
$file = substr($file, 0, strlen($file) - strlen($finalfile)) . $tokenfile;
$baseurl = "{$CFG->wwwroot}/{$file}";
if (!$CFG->slasharguments) {
$baseurl .= "?token={$token}&file=";

0 comments on commit 8e6c2ce

Please sign in to comment.