Commit 43066dee authored by Nigel McNie's avatar Nigel McNie
Browse files

Allow slashes in filenames when using the LEAP exporter.

parent 37e5cdf6
......@@ -333,6 +333,7 @@ class PluginExportLeap extends PluginExport {
if (empty($newname)) {
throw new ParamOutOfRangeException("Tried to add non existant file $filepath");
}
$newname = substr(str_replace('/', '_', $newname), 0, 245);
$this->attachments[] = (object)array('file' => $filepath, 'name' => $newname);
return (count($this->attachments) -1) . '-' . $newname;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment