summaryrefslogtreecommitdiffstats
path: root/web/react/components/view_image.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-06-15 11:51:10 -0400
committerJoramWilander <jwawilander@gmail.com>2015-06-15 11:51:10 -0400
commitadceb8c929b57d8c320b9b39167fb25f04ca99a1 (patch)
tree4efc0aa9949575c1bc4a64e54afae09412848406 /web/react/components/view_image.jsx
parentb7a821c3410ecd165241e2dbcf2c8376ae402124 (diff)
downloadchat-adceb8c929b57d8c320b9b39167fb25f04ca99a1.tar.gz
chat-adceb8c929b57d8c320b9b39167fb25f04ca99a1.tar.bz2
chat-adceb8c929b57d8c320b9b39167fb25f04ca99a1.zip
fixes mm-1245 filenames are now url escaped
Diffstat (limited to 'web/react/components/view_image.jsx')
-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}