mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Global: Fix reloadloop if the server checks for CSRF token
This commit is contained in:
parent
2e0f51eb80
commit
89b75825b3
1 changed files with 2 additions and 2 deletions
|
@ -75,8 +75,8 @@ final class InternalAPIPresenter extends OpenVKPresenter
|
|||
exit("ты дебил это метод апи");
|
||||
|
||||
$sessionOffset = Session::i()->get("_timezoneOffset");
|
||||
if(is_numeric($this->postParam("timezone"))) {
|
||||
$postTZ = intval($this->postParam("timezone"));
|
||||
if(is_numeric($this->postParam("timezone", false))) {
|
||||
$postTZ = intval($this->postParam("timezone", false));
|
||||
if ($postTZ != $sessionOffset || $sessionOffset == null) {
|
||||
Session::i()->set("_timezoneOffset", $postTZ ? $postTZ : 3 * MINUTE );
|
||||
$this->returnJson([
|
||||
|
|
Loading…
Reference in a new issue