Permalink
Browse files

Merge pull request #102 from thraizz/webui-fixes

webui: fix invalid url generated in first job
  • Loading branch information...
fbergkemper committed Oct 9, 2018
2 parents b7ab986 + 441eb7d commit 0d6691717fb4496930c45b8860b12f24bb5af3f1
Showing with 2 additions and 1 deletion.
  1. +2 −1 webui/module/Job/src/Job/Controller/JobController.php
@@ -361,7 +361,8 @@ public function runAction()
$this->bsock->disconnect();
$s = strrpos($result, "=") + 1;
$jobid = rtrim( substr( $result, $s ) );
return $this->redirect()->toRoute('job', array('action' => 'details', 'id' => $jobid));
preg_match("'\d{1,99}(?=%)?'", $jobid, $filtered);
return $this->redirect()->toRoute('job', array('action' => 'details', 'id' => $filtered[0]));
}
catch(Exception $e) {
echo $e->getMessage();

0 comments on commit 0d66917

Please sign in to comment.