diff options
author | Corey Hulen <corey@hulen.com> | 2015-06-15 10:02:11 -0800 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-06-15 10:02:11 -0800 |
commit | c7bdb8acdb716832c7e5cdd25648b9f72ae1f748 (patch) | |
tree | af7006b260cd44ea1bc1779439ea005563dcc1f0 /web/react | |
parent | 4335b21ee9cd41ff5693ab9c7aac957a799a3dfa (diff) | |
parent | 706bba193d65b4d25974a36e434eda50b852290a (diff) | |
download | chat-c7bdb8acdb716832c7e5cdd25648b9f72ae1f748.tar.gz chat-c7bdb8acdb716832c7e5cdd25648b9f72ae1f748.tar.bz2 chat-c7bdb8acdb716832c7e5cdd25648b9f72ae1f748.zip |
Merge pull request #4 from mattermost/mm-1245
fixes mm-1245 filenames are now url escaped
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/view_image.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/view_image.jsx b/web/react/components/view_image.jsx index 7d0f0d8a9..4cb30e1d3 100644 --- a/web/react/components/view_image.jsx +++ b/web/react/components/view_image.jsx @@ -165,7 +165,7 @@ module.exports = React.createClass({ <span className="text"> | </span> </div> : "" } - <a href={this.props.filenames[id]} download={name} className="text">Download</a> + <a href={this.props.filenames[id]} download={decodeURIComponent(name)} className="text">Download</a> </div> </div> {loading} |