From bcfbc07bacb9ad8f56adc1f09049b4662c77615e Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 18 Aug 2017 16:14:14 +0800 Subject: [PATCH] fix #599 --- var/Widget/Security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/Widget/Security.php b/var/Widget/Security.php index eba244a3..0f3ce4a5 100644 --- a/var/Widget/Security.php +++ b/var/Widget/Security.php @@ -87,7 +87,7 @@ class Widget_Security extends Typecho_Widget */ public function protect() { - if ($this->enabled && $this->request->get('_') != $this->getToken($this->request->getReferer())) { + if ($this->_enabled && $this->request->get('_') != $this->getToken($this->request->getReferer())) { $this->response->goBack(); } }