* Fix bug #22688.
This commit is contained in:
@@ -873,6 +873,8 @@ class mr extends control
|
||||
$this->loadModel('repo');
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$v1 = helper::safe64Decode($v1);
|
||||
$v2 = helper::safe64Decode($v2);
|
||||
if($this->post->reviewType == 'bug') $result = $this->mr->saveBug($repoID, $mr, $v1, $v2);
|
||||
if($this->post->reviewType == 'task') $result = $this->mr->saveTask($repoID, $mr, $v1, $v2);
|
||||
if($result['result'] == 'fail') return print(json_encode($result));
|
||||
|
||||
@@ -38,8 +38,8 @@ if($repoExecution)
|
||||
}
|
||||
|
||||
$reviews = $this->mr->getReview($repoID, $MR->id);
|
||||
$v1 = str_replace('-', '*', $sourceBranch);
|
||||
$v2 = str_replace('-', '*', $targetBranch);
|
||||
$v1 = helper::safe64Encode($sourceBranch);
|
||||
$v2 = helper::safe64Encode($targetBranch);
|
||||
|
||||
$this->loadModel('repo');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user