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