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

cURL fallback for CAPTCHA validation #244

Merged
merged 1 commit into from
Mar 20, 2018
Merged

cURL fallback for CAPTCHA validation #244

merged 1 commit into from
Mar 20, 2018

Conversation

stvnthomas
Copy link
Contributor

Some servers have allow_url_fopen disabled for security reasons. This causes CAPTCHA validation to fail and break the form submission because it relies on file_get_contents().

This change adds a check for allow_url_fopen and a fallback to cURL.

Signed-off-by: Steven Thomas <steven@conveyorgroup.com>
@rhukster rhukster merged commit 2100514 into getgrav:develop Mar 20, 2018
@rhukster
Copy link
Member

Nice!

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.

None yet

3 participants