Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
Merge branch 'develop' of https://github.com/twilio/OpenVBX into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
caseysoftware committed Jan 29, 2013
2 parents d3d344d + 6fc02d9 commit c951a06
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.markdown
@@ -1,5 +1,10 @@
# OpenVBX Change Log

## OpenVBX 1.2.12

- Send proper JSON header during install steps.


## OpenVBX 1.2.12

- Fix cache table `value` field to be `mediumblob` instead of `text`. Fixes an issue where large lists of phone numbers (300+) would overflow the value field and corrupt the cached data.
Expand Down
13 changes: 9 additions & 4 deletions OpenVBX/controllers/install.php
Expand Up @@ -286,7 +286,7 @@ public function setup()
$json['step'] = $e->getCode();
}

echo json_encode($json);
$this->json_return($json);
}

private function setup_connect_app($settings)
Expand Down Expand Up @@ -568,8 +568,7 @@ function validate()

if($step == 1)
{
echo json_encode($json);
return;
$this->json_return($json);
}

$tplvars = $this->input_args();
Expand All @@ -591,7 +590,7 @@ function validate()
}

$json['tplvars'] = $tplvars;
echo json_encode($json);
$this->json_return($json);
}

function validate_step2()
Expand Down Expand Up @@ -819,4 +818,10 @@ protected function pre_test_htaccess()
log_message($message);
}
}

protected function json_return($data) {
header('Content-type: application/json');
echo json_encode($data);
exit;
}
}

0 comments on commit c951a06

Please sign in to comment.