From 8aa706fd49abcd652f1e8967d09170ff8fa3d9b4 Mon Sep 17 00:00:00 2001 From: joyqi Date: Sat, 1 Mar 2014 17:29:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=AF=B9ip=E7=9A=84=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=EF=BC=8C=E5=9B=A0=E4=B8=BA=E5=86=8D=E6=9F=90=E4=BA=9B?= =?UTF-8?q?=E5=A4=9A=E5=87=BA=E5=8F=A3=E7=9A=84=E7=BD=91=E7=BB=9C=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E4=B8=AD=E5=8F=AF=E8=83=BD=E5=AD=98=E5=9C=A8=E5=A4=9A?= =?UTF-8?q?=E4=B8=AAip=E6=9D=A5=E5=9B=9E=E5=88=87=E6=8D=A2=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/Widget/Security.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/var/Widget/Security.php b/var/Widget/Security.php index a064e945..a51777ee 100644 --- a/var/Widget/Security.php +++ b/var/Widget/Security.php @@ -32,8 +32,7 @@ class Widget_Security extends Typecho_Widget $token = uniqid(); if ($user->hasLogin()) { $token = $user->authCode . '&' . $user->uid - . '&' . $this->request->getRequestUrl() - . '&' . $this->request->getIp(); + . '&' . $this->request->getRequestUrl(); } $this->_token = md5($token); @@ -70,8 +69,7 @@ class Widget_Security extends Typecho_Widget $token = uniqid(); if ($user->hasLogin()) { $token = $user->authCode . '&' . $user->uid - . '&' . $this->request->getReferer() - . '&' . $this->request->getIp(); + . '&' . $this->request->getReferer(); } if ($this->request->get('_') != md5($token)) {