Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve friend URL validation before trying to discover feeds #290

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

akirk
Copy link
Owner

@akirk akirk commented Feb 16, 2024

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().

@akirk akirk changed the title Check the friend URL before trying to discover feeds Improve friend URL validation before trying to discover feeds Feb 16, 2024
@akirk akirk merged commit 61ec30b into main Feb 16, 2024
38 checks passed
@akirk akirk deleted the check-friend-url branch February 16, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant