install Joomla 3.9 RC1 behind a load balancer or reverse proxy (like many people do, like many web hosts do)
Joomla historically doesn't use IP address in many places, but one place this is very evident is in the new features for Joomla 3.9
Action Log & reCaptcha use IP Address, expect to use the correct IP address of the USER (and not the proxy server, host, or any other IP address)
Action Log & reCaptcha IP Address is read from $_SERVER['REMOTE_ADDR']
with code
$ip = JFactory::getApplication()->input->server->get('REMOTE_ADDR', null, 'raw');
// or
$input->server->get('REMOTE_ADDR', '', 'string');
This will NOT give you the correct IP address for the user when behind proxies.
See the great work already distributed with Joomla in FOFUtilsIp that could be implemented.
Very bad use in storing votes too
$userIP = $_SERVER['REMOTE_ADDR'];
Labels |
Added:
?
|
Labels |
Added:
J3 Issue
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-10-16 18:36:59 |
Closed_By | ⇒ | zero-24 |
Closing as there is a PR.
The pr covers one of three areas covered by this issue so why would you close the issue?
——
Sent from my iPhone - sorry - if needed I’ll send longer email from my desk later.
——
On 16 Oct 2018, at 19:39, zero-24 notifications@github.com wrote:
Closing as there is a PR.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
I’m in bed unwell actually- but hey.
——
Sent from my iPhone - sorry - if needed I’ll send longer email from my desk later.
——
On 16 Oct 2018, at 19:45, Nicola Galgano notifications@github.com wrote:
you are 2 fast for me
?
see #22671 #22672 #22673—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
can you test #22670 is for
com_actionlogs
only