Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-03-23 23:42:29 +0300
committerJoas Schilling <coding@schilljs.com>2022-03-23 23:42:29 +0300
commit5f75d2e1044335cd5404d836b7ce3b3f4cf4008b (patch)
tree0e555b02de3b196e78f74b2bda401d74cc679c0c /core
parentd683e0d3d1448111d8de1ffaa480dcb203f61143 (diff)
Remove old shortening
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-rw-r--r--core/Controller/AppPasswordController.php3
-rw-r--r--core/Controller/ClientFlowLoginController.php4
2 files changed, 0 insertions, 7 deletions
diff --git a/core/Controller/AppPasswordController.php b/core/Controller/AppPasswordController.php
index 7cc0310746d..41f0f6e4f27 100644
--- a/core/Controller/AppPasswordController.php
+++ b/core/Controller/AppPasswordController.php
@@ -99,9 +99,6 @@ class AppPasswordController extends \OCP\AppFramework\OCSController {
}
$userAgent = $this->request->getHeader('USER_AGENT');
- if (mb_strlen($userAgent) > 128) {
- $userAgent = mb_substr($userAgent, 0, 120) . '…';
- }
$token = $this->random->generate(72, ISecureRandom::CHAR_UPPER.ISecureRandom::CHAR_LOWER.ISecureRandom::CHAR_DIGITS);
diff --git a/core/Controller/ClientFlowLoginController.php b/core/Controller/ClientFlowLoginController.php
index ff6b8888884..e067f0ff6b5 100644
--- a/core/Controller/ClientFlowLoginController.php
+++ b/core/Controller/ClientFlowLoginController.php
@@ -322,10 +322,6 @@ class ClientFlowLoginController extends Controller {
$clientName = $client->getName();
}
- if (mb_strlen($clientName) > 128) {
- $clientName = mb_substr($clientName, 0, 120) . '…';
- }
-
$token = $this->random->generate(72, ISecureRandom::CHAR_UPPER.ISecureRandom::CHAR_LOWER.ISecureRandom::CHAR_DIGITS);
$uid = $this->userSession->getUser()->getUID();
$generatedToken = $this->tokenProvider->generateToken(