Comments (6)
Thanks for reporting! Ill check.
from pathfinder.
Try ....
static function getIGBHeaderData(){
$data = (object) [];
$data->trusted = false;
$data->values = [];
$headerData = apache_request_headers();
foreach($headerData as $key => $value){
$key = strtolower($key);
$key = str_replace('eve_', 'eve-', $key);
if (strpos($key, 'eve-') === 0) {
$key = str_replace('eve-', '', $key);
if (
$key === 'trusted' &&
$value === 'Yes'
) {
$data->trusted = true;
}
$data->values[$key] = $value;
}
}
return $data;
}
from pathfinder.
Thx for reporting I'll check and fix this in v0.0.10
Ivanda Nothabeer [email protected] schrieb am Di., 15. Sep. 2015
01:51:
Try ....
static function getIGBHeaderData(){
$data = (object) [];
$data->trusted = false;
$data->values = [];
$headerData = apache_request_headers();foreach($headerData as $key => $value){ $key = strtolower($key); $key = str_replace('eve_', 'eve-', $key); if (strpos($key, 'eve-') === 0) { $key = str_replace('eve-', '', $key); if ( $key === 'trusted' && $value === 'Yes' ) { $data->trusted = true; } $data->values[$key] = $value; } } return $data;
}
β
Reply to this email directly or view it on GitHub
#19 (comment).
from pathfinder.
Using apache_request_headers() will fail on some setups. It's better to look through the $_SERVER superglobal as any extra headers are passed in there by default on apache, and any FCGI setup will expose its added variables there too.
from pathfinder.
Issue should be fixed in v0.0.10.
For some reason, there are no custom CCP Header data in $_SERVER (local xampp @ Win). I guess it has something to do with:
- http://stackoverflow.com/questions/15382407/not-all-headers-available-in-server-php
- http://stackoverflow.com/questions/7141566/server-headers-are-missing-in-php-but-present-in-python
I canΒ΄t find any clean solution for the problem, just ugly mod_rewrite
rules and implementations that mix up $_SERVER
and apache_request_headers()
. For now we stick to apache_request_headers()
from pathfinder.
Just do detection when trying to read the headers and if none match, fall back to apache_request_headers().
On NGINX I inject the headers into $_SERVER via fcgi_variables, so this will work correctly on nginx regardless.
from pathfinder.
Related Issues (20)
- Icon detalize on WH system
- Can not login via SSO to public pathfinder HOT 5
- Failed to set up new Pathfinder Server: SSO Login Issues
- Visual concept
- Langue support on Signature type
- the card and all settings with fixed systems are missing
- update composer dependencies
- [Feature Request] Access management UI
- [Feature Request] More intel Mapping options
- [Feature Request] Different URL for Discord Notifications Webhook
- Corporation search in structures failed. HOT 3
- New wormhole type for Turnur HOT 3
- Change of corp HOT 1
- When creating a new map is 'undefined' an not useable...
- Banned
- boot
- Error 403
- Specific Corporation is unable to login to pathfinder, throws 500 Error
- Is this Porject Dead? HOT 2
- The site components are not loaded
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pathfinder.