summaryrefslogtreecommitdiff
path: root/inc/changelog.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-04-10 20:16:13 +0200
committerAndreas Gohr <andi@splitbrain.org>2009-04-10 20:16:13 +0200
commit2f9daf1661e0661f4400685164a54d4aa0b35bd6 (patch)
tree2e1f4cb4129ad920e663106eb0be9b555a9e9b7c /inc/changelog.php
parentd0a9c58614887a2f0b84b49588a131006e446a1d (diff)
downloadrpg-2f9daf1661e0661f4400685164a54d4aa0b35bd6.tar.gz
rpg-2f9daf1661e0661f4400685164a54d4aa0b35bd6.tar.bz2
Make more use of clientIP() FS#1668
Ignore-this: 13616da575fbe56064b2aa3d1d803bf5 darcs-hash:20090410181613-7ad00-b74c82c1f9296a2cb0d00b03316141b19821bda1.gz
Diffstat (limited to 'inc/changelog.php')
-rw-r--r--inc/changelog.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/changelog.php b/inc/changelog.php
index 20e2ae340..debbc2834 100644
--- a/inc/changelog.php
+++ b/inc/changelog.php
@@ -55,7 +55,7 @@ function addLogEntry($date, $id, $type=DOKU_CHANGE_TYPE_EDIT, $summary='', $extr
$wasRemoved = ($type===DOKU_CHANGE_TYPE_DELETE);
if(!$date) $date = time(); //use current time if none supplied
- $remote = (!$flagExternalEdit)?$_SERVER['REMOTE_ADDR']:'127.0.0.1';
+ $remote = (!$flagExternalEdit)?clientIP(true):'127.0.0.1';
$user = (!$flagExternalEdit)?$_SERVER['REMOTE_USER']:'';
$strip = array("\t", "\n");
@@ -109,7 +109,7 @@ function addMediaLogEntry($date, $id, $type=DOKU_CHANGE_TYPE_EDIT, $summary='',
$id = cleanid($id);
if(!$date) $date = time(); //use current time if none supplied
- $remote = $_SERVER['REMOTE_ADDR'];
+ $remote = clientIP(true);
$user = $_SERVER['REMOTE_USER'];
$strip = array("\t", "\n");