GroupUrlRule: if $this->routePrefix is unset then only one trim is called
@ -77,11 +77,8 @@ class GroupUrlRule extends CompositeUrlRule
*/
public function init()
{
if ($this->routePrefix === null) {
$this->routePrefix = $this->prefix;
}
$this->prefix = trim($this->prefix, '/');
$this->routePrefix = trim($this->routePrefix, '/');
$this->routePrefix = $this->routePrefix === null ? $this->prefix : trim($this->routePrefix, '/');
parent::init();