Skip to content

Commit 387a9cd

Browse files
committed
convert encoding
1 parent 501efa1 commit 387a9cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Session/DatabaseSessionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ protected function ipAddress()
255255
*/
256256
protected function userAgent()
257257
{
258-
return substr((string) $this->container->make('request')->header('User-Agent'), 0, 500);
258+
return substr(mb_convert_encoding((string) $this->container->make('request')->header('User-Agent'), 'UTF-8'), 0, 500);
259259
}
260260

261261
/**

0 commit comments

Comments
 (0)