]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove old shortening 31688/head
authorJoas Schilling <coding@schilljs.com>
Wed, 23 Mar 2022 20:42:29 +0000 (21:42 +0100)
committerJoas Schilling <coding@schilljs.com>
Wed, 23 Mar 2022 20:42:29 +0000 (21:42 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
core/Controller/AppPasswordController.php
core/Controller/ClientFlowLoginController.php

index 7cc0310746d5e8c4f62e65612d8d0db12e9fd338..41f0f6e4f273e3c3d4abae797e14001e8ad6c855 100644 (file)
@@ -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);
 
index ff6b888888478a270164ad71358d438305d0c26e..e067f0ff6b5f5b3406f0c29c3aa2b336a40794f4 100644 (file)
@@ -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(