A platform for community discussion. Free, open, simple.
FEATURE: Do encodeURI on share links
Misaka 0x4e21e26437f3343b
diff --git a/app/assets/javascripts/discourse/components/share-popup.js.es6 b/app/assets/javascripts/discourse/components/share-popup.js.es6index 5f899f2bae4..7980b2abe31 100644--- a/app/assets/javascripts/discourse/components/share-popup.js.es6+++ b/app/assets/javascripts/discourse/components/share-popup.js.es6@@ -81,7 +81,7 @@ export default Ember.Component.extend({if (!this.site.mobileView) {$this.css({ left: "" + x + "px" });}- this.set("link", url);+ this.set("link", encodeURI(url));this.set("visible", true);Ember.run.scheduleOnce("afterRender", this, this._focusUrl);