discourse/app/assets/javascripts/pretty-text/addon
Martin Brennan 62f2e1f971
FIX: Stop double prepending of window.location.origin on media URLs (#10275)
This fixes an issue where sometimes when composing a post and uploading a video/audio file, _loadCachedShortUrls/the uploads controller would return a full URL with origin, instead of just the URL with the host e.g. http://localhost:3000/some/video.mp4 instead of just //localhost:3000/some/video.mp4. We were prepending window.location.origin onto the URL no matter what, and since http://localhost:3000/some/video.mp4 does not match the host URL regex, we were ending up with something like http://localhost:3000http://localhost:3000/some/video.mp4 which broke composer previews. This was only noticed with a video upload in a secure upload environment.
2020-07-22 09:23:55 +10:00
..
emoji DEV: Replace `version.js.erb` with pre generated file 2020-05-11 15:43:09 -04:00
engines Revert "UX: Style video elements, show descriptions (#10040)" (#10258) 2020-07-17 23:31:01 +02:00
censored-words.js DEV: Move pretty-text into an ember-addon format (#9689) 2020-05-07 12:37:47 -04:00
emoji.js FIX: allows to have custom emoji translation without static file (#9893) 2020-05-27 20:11:52 +02:00
guid.js DEV: Move pretty-text into an ember-addon format (#9689) 2020-05-07 12:37:47 -04:00
inline-oneboxer.js DEV: Remove INLINE_ONEBOX_* constants 2020-05-07 16:14:38 -04:00
oneboxer-cache.js DEV: Move pretty-text into an ember-addon format (#9689) 2020-05-07 12:37:47 -04:00
oneboxer.js REFACTOR: removes various assignments and superfluous params (#9699) 2020-05-08 09:19:48 +02:00
pretty-text.js FIX: allows to have custom emoji translation without static file (#9893) 2020-05-27 20:11:52 +02:00
sanitizer.js DEV: Move pretty-text into an ember-addon format (#9689) 2020-05-07 12:37:47 -04:00
upload-short-url.js FIX: Stop double prepending of window.location.origin on media URLs (#10275) 2020-07-22 09:23:55 +10:00
white-lister.js Revert "UX: Style video elements, show descriptions (#10040)" (#10258) 2020-07-17 23:31:01 +02:00
xss.js DEV: Move pretty-text into an ember-addon format (#9689) 2020-05-07 12:37:47 -04:00