Cidram: [BUG] ipaddr not updating from front-end and incorrect data shown

Created on 22 Nov 2017  路  3Comments  路  Source: CIDRAM/CIDRAM

@Maikuolan Found another bug.
I set HTTP_CF_CONNECTING_IP in ipaddr in the config.ini but in the front-end general->ipaddr: still shows REMOTE_ADDR
Also,
Updatinggeneral->ipaddr: from the front-end does not work.

screenshot_10
screenshot_11

Bug Fixed

All 3 comments

Thanks for reporting this. :+1:

Confirmed; Marking as Bug.

The value seems to update correctly when the corresponding $_SERVER variable exists, but doesn't update correctly when the corresponding variable doesn't exist. It also seems to ignore the assigned value if the corresponding variable doesn't exist.

The assigned value for ipaddr being internally replaced by REMOTE_ADDR when the corresponding variable doesn't exist is expected, but it is not expected for it to extend to the configuration page itself, and it should be possible to assign any desired value to this configuration directive regardless. Investigating the cause of the bug now.

Committed a fix just now; Should be working correctly now. :-)

Yup. Updating from the front-end working now. 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Dibbyo456 picture Dibbyo456  路  5Comments

Maikuolan picture Maikuolan  路  5Comments

mikeruss1 picture mikeruss1  路  5Comments

soumsps picture soumsps  路  5Comments

eurobank picture eurobank  路  3Comments