]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use constants 4326/head
authorJoas Schilling <coding@schilljs.com>
Wed, 12 Apr 2017 11:04:28 +0000 (13:04 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 13 Apr 2017 17:04:32 +0000 (12:04 -0500)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/AppFramework/Http/Request.php
lib/private/Log/File.php

index c6ef5169ddbbf865592b7b07c7b08cf8962ec77a..b39ae3e8c0cd2219c6d00203571ea28bc41751b0 100644 (file)
@@ -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);
                }
 
index 9ef071bee5f0b8fe0d75d2ff210a4d30e0913232..97ec5012b1f34172dc852228358ea4c55b4c4615 100644 (file)
@@ -115,7 +115,7 @@ class File {
                        'url',
                        'message',
                        'userAgent',
-                       'version',
+                       'version'
                );
                $entry = json_encode($entry);
                $handle = @fopen(self::$logFile, 'a');