From 35da9ba9b9ce9204a611c22ba041fffbbef83e0f Mon Sep 17 00:00:00 2001 From: Marco Hermo Date: Mon, 12 Nov 2018 18:47:47 +1300 Subject: [PATCH] The value of the variable is overwritten immediately --- code/ZenValidatorConstraint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ZenValidatorConstraint.php b/code/ZenValidatorConstraint.php index 63a5ee4..0310bd5 100644 --- a/code/ZenValidatorConstraint.php +++ b/code/ZenValidatorConstraint.php @@ -649,7 +649,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 = null, Controller::curr()->getSession(), $this->method); + $response = Director::test($url, $postVars, Controller::curr()->getSession(), $this->method); $result = ($response->getStatusCode() == 200) ? true : false; // Otherwise CURL to remote url