diff options
author | Marek-Wojtowicz <54400070+Marek-Wojtowicz@users.noreply.github.com> | 2022-01-12 00:33:18 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2022-01-18 02:23:17 +0300 |
commit | 10ae5acf64086a158d57506317424ebc3e90ee73 (patch) | |
tree | 0cbf4b8fa210eae2b129c8d2cd6ee12181c16336 | |
parent | 58b4db7f7d4e526e8d8d60bfd339cd4cc00cda29 (diff) |
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>
-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 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); |