Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-37942 Images with non-alphanumeric chars in file name won't export

  • Loading branch information...
commit e1267ba041f3e281ad480cd3b419f5dce04b33a2 1 parent 3fd370a
@jason-platts jason-platts authored danpoltawski committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/portfoliolib.php
View
2  lib/portfoliolib.php
@@ -1250,7 +1250,7 @@ function portfolio_rewrite_pluginfile_url_callback($contextid, $component, $file
$filename = array_pop($bits);
$filepath = implode('/', $bits);
}
- if (!$file = $fs->get_file($contextid, $component, $filearea, $itemid, $filepath, $filename)) {
+ if (!$file = $fs->get_file($contextid, $component, $filearea, $itemid, $filepath, urldecode($filename))) {
debugging("Couldn't find a file from the embedded path info context $contextid component $component filearea $filearea itemid $itemid filepath $filepath name $filename");
return $matches;
}
Please sign in to comment.
Something went wrong with that request. Please try again.