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

Fix crash when no location header is set for 302 #23

Merged
merged 1 commit into from
Oct 21, 2023
Merged

Fix crash when no location header is set for 302 #23

merged 1 commit into from
Oct 21, 2023

Conversation

ilpianista
Copy link

Unfortunately I discovered a misconfigured server that replies with a 302 status code, but provides no Location header. This makes the library crash as this sets $url to an empty string.

Fixes nextcloud/news#2351

@ilpianista
Copy link
Author

@ArthurHoaro any chance you get time to review this?

Copy link
Owner

@ArthurHoaro ArthurHoaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix and sorry for the delay!

@ArthurHoaro ArthurHoaro merged commit a635bb5 into ArthurHoaro:master Oct 21, 2023
@ilpianista ilpianista deleted the bugfix/302-no-location branch October 23, 2023 08:31
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.

Some feeds stopped being updated by cron
2 participants