summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/AppFramework/Http/Request.php3
-rw-r--r--lib/private/Log/File.php10
2 files changed, 7 insertions, 6 deletions
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php
index 3f1e6fd951a..c6ef5169ddb 100644
--- a/lib/private/AppFramework/Http/Request.php
+++ b/lib/private/AppFramework/Http/Request.php
@@ -578,7 +578,8 @@ class Request implements \ArrayAccess, \Countable, IRequest {
}
if(empty($this->requestId)) {
- $this->requestId = $this->secureRandom->generate(20);
+ $validChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
+ $this->requestId = $this->secureRandom->generate(20, $validChars);
}
return $this->requestId;
diff --git a/lib/private/Log/File.php b/lib/private/Log/File.php
index 8011f63ab13..9ef071bee5f 100644
--- a/lib/private/Log/File.php
+++ b/lib/private/Log/File.php
@@ -106,16 +106,16 @@ class File {
$version = $config->getValue('version', '');
$entry = compact(
'reqId',
- 'remoteAddr',
- 'app',
- 'message',
'level',
'time',
+ 'remoteAddr',
+ 'user',
+ 'app',
'method',
'url',
- 'user',
+ 'message',
'userAgent',
- 'version'
+ 'version',
);
$entry = json_encode($entry);
$handle = @fopen(self::$logFile, 'a');