From cdd2385b08cb197d1cf6e182ed226fa22e01ca65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 1 Feb 2013 22:46:43 +0100 Subject: [PATCH] Convert ip6 to ip4 in InfoCommand --- file/lib/system/command/commands/InfoCommand.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/lib/system/command/commands/InfoCommand.class.php b/file/lib/system/command/commands/InfoCommand.class.php index 4f01ce0..b1c6b47 100644 --- a/file/lib/system/command/commands/InfoCommand.class.php +++ b/file/lib/system/command/commands/InfoCommand.class.php @@ -48,7 +48,7 @@ public function __construct(\chat\system\command\CommandHandler $commandHandler) if (WCF::getSession()->getPermission('admin.user.canViewIpAddress')) { $session = $this->fetchSession(); if ($session) { - $this->lines[WCF::getLanguage()->get('wcf.user.ipAddress')] = $session->ipAddress; + $this->lines[WCF::getLanguage()->get('wcf.user.ipAddress')] = \wcf\util\UserUtil::convertIPv6To4($session->ipAddress); } }