Permalink
Browse files

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

  • Loading branch information...
1 parent 42f64a0 commit ced8b30bd566fc808ef69fbcd6d7c602481d81fd @jason-platts jason-platts committed with danpoltawski Apr 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/portfoliolib.php
View
2 lib/portfoliolib.php
@@ -1260,7 +1260,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;
}

0 comments on commit ced8b30

Please sign in to comment.