Skip to content

Commit

Permalink
SAK-40789 - Forums attachments are not encoded when are migrated to a…
Browse files Browse the repository at this point in the history
…nother site
  • Loading branch information
danielmerino authored and Miguel Pellicer committed Oct 16, 2018
1 parent 5032a74 commit f7c6570
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1092,8 +1092,8 @@ private Attachment copyAttachment(String attachmentId, String toContext) {
try {
ContentResource oldAttachment = contentHostingService.getResource(attachmentId);
ContentResource attachment = contentHostingService.addAttachmentResource(
oldAttachment.getProperties().getProperty(
ResourceProperties.PROP_DISPLAY_NAME), toContext, toolManager.getTool(
Validator.escapeResourceName(oldAttachment.getProperties().getProperty(
ResourceProperties.PROP_DISPLAY_NAME)), toContext, toolManager.getTool(
"sakai.forums").getTitle(), oldAttachment.getContentType(),
oldAttachment.getContent(), oldAttachment.getProperties());
Attachment thisDFAttach = dfManager.createDFAttachment(
Expand Down

0 comments on commit f7c6570

Please sign in to comment.