Use constants

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-04-12 13:04:28 +02:00 committed by Morris Jobke
parent 38e5135cb9
commit 695696a4a6
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
2 changed files with 2 additions and 2 deletions

View File

@ -578,7 +578,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
} }
if(empty($this->requestId)) { if(empty($this->requestId)) {
$validChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; $validChars = ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS;
$this->requestId = $this->secureRandom->generate(20, $validChars); $this->requestId = $this->secureRandom->generate(20, $validChars);
} }

View File

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