Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Add safety check during Twitter response URL parse #788

Merged
merged 1 commit into from
Aug 10, 2018

Conversation

MichalTuleja
Copy link
Contributor

What was the problem?

The Explorer process crashed when the /api/newsfeed was accessed and one of tweets didn't contain an URL.

How did I fix it?

An additional security check is done before the potential data are accessed.

How to test it?

Test the /api/newsfeed route, the process should not crash.

Review checklist

@lsilvs lsilvs assigned MichalTuleja and unassigned lsilvs Aug 9, 2018
@MichalTuleja MichalTuleja merged commit 9a74688 into 1.7.3 Aug 10, 2018
@MichalTuleja MichalTuleja deleted the 787-newsfeed-crash branch August 10, 2018 07:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants