| @@ 540-551 (lines=12) @@ | ||
| 537 | * @return bool |
|
| 538 | * @since 9.1.0 |
|
| 539 | */ |
|
| 540 | public function passesStrictCookieCheck() { |
|
| 541 | if(!$this->cookieCheckRequired()) { |
|
| 542 | return true; |
|
| 543 | } |
|
| 544 | ||
| 545 | $cookieName = $this->getProtectedCookieName('nc_sameSiteCookiestrict'); |
|
| 546 | if($this->getCookie($cookieName) === 'true' |
|
| 547 | && $this->passesLaxCookieCheck()) { |
|
| 548 | return true; |
|
| 549 | } |
|
| 550 | return false; |
|
| 551 | } |
|
| 552 | ||
| 553 | /** |
|
| 554 | * Checks if the lax cookie has been sent with the request if the request |
|
| @@ 560-570 (lines=11) @@ | ||
| 557 | * @return bool |
|
| 558 | * @since 9.1.0 |
|
| 559 | */ |
|
| 560 | public function passesLaxCookieCheck() { |
|
| 561 | if(!$this->cookieCheckRequired()) { |
|
| 562 | return true; |
|
| 563 | } |
|
| 564 | ||
| 565 | $cookieName = $this->getProtectedCookieName('nc_sameSiteCookielax'); |
|
| 566 | if($this->getCookie($cookieName) === 'true') { |
|
| 567 | return true; |
|
| 568 | } |
|
| 569 | return false; |
|
| 570 | } |
|
| 571 | ||
| 572 | ||
| 573 | /** |
|