summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-06-15 10:02:11 -0800
committerCorey Hulen <corey@hulen.com>2015-06-15 10:02:11 -0800
commitc7bdb8acdb716832c7e5cdd25648b9f72ae1f748 (patch)
treeaf7006b260cd44ea1bc1779439ea005563dcc1f0 /web
parent4335b21ee9cd41ff5693ab9c7aac957a799a3dfa (diff)
parent706bba193d65b4d25974a36e434eda50b852290a (diff)
downloadchat-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')
-rw-r--r--web/react/components/view_image.jsx2
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}