mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 09:03:44 +08:00
62f2e1f971
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. |
||
---|---|---|
.. | ||
emoji | ||
engines | ||
censored-words.js | ||
emoji.js | ||
guid.js | ||
inline-oneboxer.js | ||
oneboxer-cache.js | ||
oneboxer.js | ||
pretty-text.js | ||
sanitizer.js | ||
upload-short-url.js | ||
white-lister.js | ||
xss.js |