Skip to content

Commit

Permalink
The value of the variable is overwritten immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Hermo committed Nov 12, 2018
1 parent 150565a commit 35da9ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/ZenValidatorConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35da9ba

Please sign in to comment.