1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 02:02:41 +01:00

Fix a typo in preamble X-Forwarded-For psuedocode

Summary: This psueudocode should use the result of computation at the end.

Test Plan: Read carefully.

Differential Revision: https://secure.phabricator.com/D20813
This commit is contained in:
epriestley 2019-09-15 06:59:14 -07:00
parent 3dcb4a7b50
commit c5a4dea8cf

View file

@ -82,7 +82,7 @@ if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$real_address = your_custom_parsing_function($raw_header);
$_SERVER['REMOTE_ADDR'] = $raw_header;
$_SERVER['REMOTE_ADDR'] = $real_address;
}
```