akirk / friends

A social network between WordPresses. Privacy focused, by itself a self-hosted RSS++ reader with notifications.
https://wpfriends.at/
GNU General Public License v2.0
78 stars 13 forks source link

Improve friend URL validation before trying to discover feeds #290

Closed akirk closed 4 months ago

akirk commented 4 months ago

While we check the URL in several other occasions, we didn't check it before trying to discover feeds there. While this is only accessible to authenticated users with higher permissions than Friends::REQUIRED_ROLE which is edit_private_posts, we still should ensure that the URL is valid according to wp_http_validate_url().