mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 16:51:16 +08:00

This commit prevents unallowed URLs in iframe src by adding a relative path like `https://bob.com/abc/def/../ghi`. Currently, the iframe linking to the site uses the current_user, not the post's author, so users who have no access to a certain path are not able to view anything they shouldn't.