diff --git a/code/ZenValidatorConstraint.php b/code/ZenValidatorConstraint.php index f2e2c37..b6bc3fa 100644 --- a/code/ZenValidatorConstraint.php +++ b/code/ZenValidatorConstraint.php @@ -666,7 +666,7 @@ public function validate($value) if (Director::is_relative_url($url)) { $url = Director::makeRelative($url); $postVars = $this->method == 'POST' ? $this->params : null; - $response = Director::test($url, $postVars, Controller::curr()->getSession(), $this->method); + $response = Director::test($url, $postVars, Controller::curr()->getRequest()->getSession(), $this->method); $result = ($response->getStatusCode() == 200) ? true : false; // Otherwise CURL to remote url