Opened 5 weeks ago

Closed 5 weeks ago

#1814 closed Bug/Fehler (fixed)

xtc_get_ip_address - undefined index REMOTE_ADDR

Reported by: Owned by: somebody
Priority: normal Milestone: modified-shop-
Component: Shop Version:


Problem: Es fehlt die Prüfung, ob $_SERVER[REMOTE_ADDR] existiert.


Suchen nach:

function xtc_get_ip_address() {    

DANACH einfügen:

$tmp_ip = '';

Suchen nach:

} else {
  $tmp_ip = $_SERVER['REMOTE_ADDR'];

Ersetzen mit:

} else if (isset($_SERVER['REMOTE_ADDR'])) {
  $tmp_ip = $_SERVER['REMOTE_ADDR'];

Suchen nach:

} else {
  $tmp_ip = getenv('REMOTE_ADDR');

Ersetzen mit:

} else if (getenv('REMOTE_ADDR') != '') {
  $tmp_ip = getenv('REMOTE_ADDR');

Attachments (0)

Change History (2)

comment:1 Changed 5 weeks ago by Tomcraft

  • Milestone set to modified-shop-

comment:2 Changed 5 weeks ago by GTB

  • Resolution set to fixed
  • Status changed from new to closed

In 12731:

fix #1814 - fix undefined index REMOTE_ADDR in /inc/

Add Comment

Modify Ticket

as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.