Skip to content
Open
Changes from 2 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Fetch/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function getData()
*/
public function getFileName()
{
return (isset($this->filename)) ? $this->filename : false;
return (isset($this->filename)) ? preg_replace('/[^A-Za-z0-9\-_.]/', '_', $this->filename) : false;
}

/**
Expand Down