diff options
author | Marek-Wojtowicz <54400070+Marek-Wojtowicz@users.noreply.github.com> | 2022-01-11 22:33:18 +0100 |
---|---|---|
committer | Marek Wójtowicz <Marek.Wojtowicz@agh.edu.pl> | 2022-01-12 23:07:28 +0100 |
commit | f76a915096d74745dc42919075a333f493e0a30e (patch) | |
tree | 9dd3df68afda41810be184a1d1387c927fdeffd1 /lib/private/User/Session.php | |
parent | 2bc0749cb6d4a11b9ae27b5287369581c6aca910 (diff) | |
download | nextcloud-server-f76a915096d74745dc42919075a333f493e0a30e.tar.gz nextcloud-server-f76a915096d74745dc42919075a333f493e0a30e.zip |
Update Session.php
The http headers according to rfc 2616 is iso-8859-1. This patch fixes the behavior when non-ascii characters are present in the header.
Signed-off-by: Marek Wójtowicz <Marek.Wojtowicz@agh.edu.pl>
Diffstat (limited to 'lib/private/User/Session.php')
-rw-r--r-- | lib/private/User/Session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php index e84576236b8..2973240a4a1 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); |