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 for missing HTTP_HOST in masharer #123

Closed
jphorn opened this issue Jul 30, 2019 · 1 comment
Closed

Fix for missing HTTP_HOST in masharer #123

jphorn opened this issue Jul 30, 2019 · 1 comment

Comments

@jphorn
Copy link

jphorn commented Jul 30, 2019

https://github.com/mashshare/MashShare/blob/78f402302ef2519f5ab4cbdb9cf4a1e295a781e3/includes/template-functions.php#L1331

My developer (@stayallive added an extra check for HTTP_HOST to make it more compliant with cron jobs and/or (our) API workers. Would be appreciated if you could add it as well.

new

    if ( empty( $_SERVER['HTTP_HOST'] ) || ( $_SERVER['HTTP_HOST'] !== 'www.mashshare.net' && $_SERVER['HTTP_HOST'] !== 'src.wordpress-develop.dev' ) ) {
@rene-hermenau
Copy link
Contributor

Hi @jphorn Sure will add it into next version. Will be released today.

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

No branches or pull requests

2 participants