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
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-01-20 13:12:34 +0300
committerGitHub <noreply@github.com>2022-01-20 13:12:34 +0300
commit4466eb1f42c037ed3a71e4a0d549fbe7c7295703 (patch)
tree84de736f0d36ade7ad6f26b0ffe159ae3817fc57
parent2645b6cd69952e446fcbdb4ead49f3124492f068 (diff)
parent10ae5acf64086a158d57506317424ebc3e90ee73 (diff)
Merge pull request #30728 from nextcloud/backport/30614/stable23
-rw-r--r--lib/private/User/Session.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php
index 710cba84879..7aea219b608 100644
--- a/lib/private/User/Session.php
+++ b/lib/private/User/Session.php
@@ -681,7 +681,7 @@ class Session implements IUserSession, Emitter {
// User does not exist
return false;
}
- $name = isset($request->server['HTTP_USER_AGENT']) ? $request->server['HTTP_USER_AGENT'] : 'unknown browser';
+ $name = isset($request->server['HTTP_USER_AGENT']) ? utf8_encode($request->server['HTTP_USER_AGENT']) : 'unknown browser';
try {
$sessionId = $this->session->getId();
$pwd = $this->getPassword($password);