mirror of
https://github.com/typecho/typecho.git
synced 2025-03-26 04:42:28 +01:00
fix #599
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user