mirror of
https://github.com/discourse/discourse.git
synced 2025-04-13 19:00:15 +08:00

This commit updates `Post#each_upload_url` to reject URLs that do not have a host which matches `Discourse.current_hostname` but follows the `/uploads/short-url` uploads URL format. This situation most commonly happen when users copy upload URL link between different Discourse sites.