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

Bug Fix: SSL get headers image verification #84

Merged
merged 2 commits into from
Jun 8, 2022

Conversation

ItsSkynet
Copy link
Contributor

Fixes a bug related to Issue #83 on main repository where after verifying the problem it was determined that SSL marked as Wildcard ( * ) can cause problems with "get_headers" function in php.

It was assumed previously that "FILTER_VALIDATE_URL" was being too strict, but later determined that SSL verification was failing.

Fixes a bug related to Issue shweshi#83 on main repository where after verifying the problem it was determined that SSL marked as Wildcard ( * ) can cause problems with "get_headers" function in php.

It was assumed previously that "FILTER_VALIDATE_URL" was being too strict, but later determined that SSL verification was failing.
@shweshi
Copy link
Owner

shweshi commented May 31, 2022

@ItsSkynet Thanks for going deeper into the issue and finding the root cause. Is it possible to add a test case for the same? PR looks okay to me.

@ItsSkynet
Copy link
Contributor Author

of course, at the moment of writing i have found a flaw in the way i approached this and i'm changing it now so that prevents changing of defaults set. i will update this pull request once i'm done changing it.

Changed Defaults overwrite to a more use-case context values set, sing "stream_context_create" for just this specific function. 

Get_headers accept a context option to be added into function.
@ItsSkynet
Copy link
Contributor Author

ItsSkynet commented Jun 1, 2022

i attach here a sandbox test of before and after the change using the before explained issue with twitter images not being read by get_headers

https://onlinephp.io/c/4f736

@shweshi
Copy link
Owner

shweshi commented Jun 8, 2022

@ItsSkynet is the PR ready to merge?

@ItsSkynet
Copy link
Contributor Author

@ItsSkynet is the PR ready to merge?

yes, its ready.

@shweshi shweshi merged commit 83b7ecc into shweshi:master Jun 8, 2022
@shweshi
Copy link
Owner

shweshi commented Jun 8, 2022

@ItsSkynet Thanks for your contribution. PR is merged and fix is released with new version. https://github.com/shweshi/OpenGraph/releases/tag/V1.1.2

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.

2 participants