Opened 5 weeks ago

Closed 5 weeks 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.5.2
Component: Shop Version: 2.0.5.1

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 Changed 5 weeks ago by Tomcraft

  • Milestone set to modified-shop-2.0.5.2

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/xtc_get_ip_address.inc.php

Add Comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.