Skip to content

Commit

Permalink
prevent spaces in dowload filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Oct 14, 2011
1 parent 6eb777c commit af19caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/sitelink/sitelinkbinaryfile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class SiteLinkBinaryFile implements SiteLinkDataTypeInterface
public function modify($Attribute,$LinkType,$SiteLink){
$ContentObjectID = $Attribute->ContentObjectID;
$ContentObjectAttributeID = $Attribute->ID;
$FileName = rawurlencode($Attribute->content()->OriginalFilename);
$FileName = rawurlencode(str_replace(" ", "_", $Attribute->content()->OriginalFilename));
return "content/download/$ContentObjectID/$ContentObjectAttributeID/".$FileName;
}
}
Expand Down

0 comments on commit af19caf

Please sign in to comment.