Use constants

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/4326/head
Joas Schilling 9 years ago committed by Morris Jobke
parent 38e5135cb9
commit 695696a4a6
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
  1. 2
      lib/private/AppFramework/Http/Request.php
  2. 2
      lib/private/Log/File.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);
}

@ -115,7 +115,7 @@ class File {
'url',
'message',
'userAgent',
'version',
'version'
);
$entry = json_encode($entry);
$handle = @fopen(self::$logFile, 'a');

Loading…
Cancel
Save