@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | ); |
358 | 358 | $this->session->remove('oauth.state'); |
359 | 359 | } else { |
360 | - $redirectUri = 'nc://login/server:' . $this->getServerPath() . '&user:' . urlencode($loginName) . '&password:' . urlencode($token); |
|
360 | + $redirectUri = 'nc://login/server:'.$this->getServerPath().'&user:'.urlencode($loginName).'&password:'.urlencode($token); |
|
361 | 361 | |
362 | 362 | // Clear the token from the login here |
363 | 363 | $this->tokenProvider->invalidateToken($sessionId); |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | return $response; |
396 | 396 | } |
397 | 397 | |
398 | - $redirectUri = 'nc://login/server:' . $this->getServerPath() . '&user:' . urlencode($user) . '&password:' . urlencode($password); |
|
398 | + $redirectUri = 'nc://login/server:'.$this->getServerPath().'&user:'.urlencode($user).'&password:'.urlencode($password); |
|
399 | 399 | return new Http\RedirectResponse($redirectUri); |
400 | 400 | } |
401 | 401 | |
@@ -418,6 +418,6 @@ discard block |
||
418 | 418 | } |
419 | 419 | } |
420 | 420 | |
421 | - return $protocol . "://" . $this->request->getServerHost() . $serverPostfix; |
|
421 | + return $protocol."://".$this->request->getServerHost().$serverPostfix; |
|
422 | 422 | } |
423 | 423 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | int $type = IToken::TEMPORARY_TOKEN, |
63 | 63 | int $remember = IToken::DO_NOT_REMEMBER): IToken { |
64 | 64 | if (mb_strlen($name) > 128) { |
65 | - $name = mb_substr($name, 0, 120) . '…'; |
|
65 | + $name = mb_substr($name, 0, 120).'…'; |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | try { |