We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Title getallheaders() function is not defined
Effected Users The WordPress users having their site running on nginx + php-fpm instead of Apache.
nginx + php-fpm
Apache
Description
if (!function_exists('getallheaders')) { function getallheaders() { $headers = []; foreach ($_SERVER as $name => $value) { if (substr($name, 0, 5) == 'HTTP_') { $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value; } } return $headers; } }
Place used function validate_cache_referrer() in amber.php
Related links
Reference commit 22e0a39#diff-48a2bdcac7ee505e0aabaf11f1d698d8R794
Update: Faced on PHP Version 5.5.9-1ubuntu4.16 nginx version: nginx/1.8.1
The text was updated successfully, but these errors were encountered:
Added definition of getallheaders() for nginx based users berkmancent…
bc851be
…er#40
Merged pull request
Sorry, something went wrong.
Added definition of getallheaders() for nginx based users #40
e6cc14e
git-svn-id: http://plugins.svn.wordpress.org/amberlink/trunk@1501712 b8457f37-d9ea-0310-8a92-e5e31aec5664
jlicht
No branches or pull requests
Title
getallheaders() function is not defined
Effected Users
The WordPress users having their site running on
nginx + php-fpm
instead ofApache
.Description
Place used
function validate_cache_referrer() in amber.php
Related links
Reference commit
22e0a39#diff-48a2bdcac7ee505e0aabaf11f1d698d8R794
Update:
Faced on
PHP Version 5.5.9-1ubuntu4.16
nginx version: nginx/1.8.1
The text was updated successfully, but these errors were encountered: