mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 00:48:10 +08:00
![Vinoth Kannan](/assets/img/avatar_default.png)
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.