mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
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>
This commit is contained in:
parent
b4486d20f0
commit
457bb9b8ef
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue