summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/AppFramework/Http/Request.php2
-rw-r--r--lib/private/Log/File.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php
index c6ef5169ddb..b39ae3e8c0c 100644
--- a/lib/private/AppFramework/Http/Request.php
+++ b/lib/private/AppFramework/Http/Request.php
@@ -578,7 +578,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
}
if(empty($this->requestId)) {
- $validChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
+ $validChars = ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS;
$this->requestId = $this->secureRandom->generate(20, $validChars);
}
diff --git a/lib/private/Log/File.php b/lib/private/Log/File.php
index 9ef071bee5f..97ec5012b1f 100644
--- a/lib/private/Log/File.php
+++ b/lib/private/Log/File.php
@@ -115,7 +115,7 @@ class File {
'url',
'message',
'userAgent',
- 'version',
+ 'version'
);
$entry = json_encode($entry);
$handle = @fopen(self::$logFile, 'a');