Modify

Opened 6 years ago

Closed 6 years ago

#1814 closed Bug/Fehler (fixed)

xtc_get_ip_address - undefined index REMOTE_ADDR

Reported by: web-looks.de Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.6.0
Component: Shop Version: 2.0.5.1
Keywords: Cc:
Blocked By: Blocking:

Description

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

/inc/xtc_get_ip_address.inc.php

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 by Torsten Riemer, 6 years ago

Milestone: modified-shop-2.0.5.2

comment:2 by Gerhard Waldemair, 6 years ago

Resolution: fixed
Status: newclosed

In 12731:

fix #1814 - fix undefined index REMOTE_ADDR in /inc/xtc_get_ip_address.inc.php

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.