control-pane icon indicating copy to clipboard operation
control-pane copied to clipboard

Possible bug

Open bozhinov opened this issue 4 years ago • 1 comments

https://github.com/clonos/control-pane/blob/aef78b712561759469ab09d713cff967b6db212d/php/clonos.php#L2062

$add_cmd=($in_helper)?' default_jailname='.$this->url_hash:''; $add_cmd1=' default_jailname='.$type; $res=$this->cbsd_cmd("freejname".$add_cmd.$add_cmd1);

after refactoring this translates to: if ($in_helper) { $res = CBSD::run('freejname default_jailname=%s default_jailname=%s', array($this->url_hash, $type)); } else { $res = CBSD::run('freejname default_jailname=%s', array($type)); }

The double default_jailname looks weird it this correct ?

bozhinov avatar Jan 26 '21 15:01 bozhinov

@moveee cbsd assumes one argument for default_jname. Can you check and remove the dubbing?

olevole avatar Feb 21 '21 13:02 olevole