Skip to content

Commit

Permalink
Merge pull request #69 from ssmarco/1
Browse files Browse the repository at this point in the history
SS3 - The value of the variable is overwritten immediately
  • Loading branch information
lekoala authored Nov 12, 2018
2 parents 150565a + 35da9ba commit 9672da2
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 9672da2

Please sign in to comment.