1
0
mirror of https://github.com/typecho/typecho.git synced 2025-03-26 04:42:28 +01:00
This commit is contained in:
joyqi 2017-08-18 16:14:14 +08:00
parent 0ba45f1006
commit bcfbc07bac

@ -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();
}
}