mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +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("ты дебил это метод апи");
|
exit("ты дебил это метод апи");
|
||||||
|
|
||||||
$sessionOffset = Session::i()->get("_timezoneOffset");
|
$sessionOffset = Session::i()->get("_timezoneOffset");
|
||||||
if(is_numeric($this->postParam("timezone"))) {
|
if(is_numeric($this->postParam("timezone", false))) {
|
||||||
$postTZ = intval($this->postParam("timezone"));
|
$postTZ = intval($this->postParam("timezone", false));
|
||||||
if ($postTZ != $sessionOffset || $sessionOffset == null) {
|
if ($postTZ != $sessionOffset || $sessionOffset == null) {
|
||||||
Session::i()->set("_timezoneOffset", $postTZ ? $postTZ : 3 * MINUTE );
|
Session::i()->set("_timezoneOffset", $postTZ ? $postTZ : 3 * MINUTE );
|
||||||
$this->returnJson([
|
$this->returnJson([
|
||||||
|
|
Loading…
Reference in a new issue