Skip to content

Commit e56c30d

Browse files
committed
Added suffix to Log::getParentPath since it's specifically for use as a prefix
1 parent 46d3b52 commit e56c30d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Log.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private static function getParentHash() {
236236
* @return string
237237
*/
238238
private static function getParentPath() {
239-
return implode('.', self::$aHashHistory);
239+
return implode('.', self::$aHashHistory) . '.';
240240
}
241241

242242
/**
@@ -258,7 +258,7 @@ private static function getRequestHash() {
258258
if (strlen($sAgent)) { $aRequest['agent'] = $sAgent; }
259259
if ($sIP != 'unknown') { $aRequest['ip'] = $sIP; }
260260

261-
self::$sRequestHash = self::getParentPath() . '.' . substr(hash('sha1', json_encode($aRequest)), 0, 6);
261+
self::$sRequestHash = self::getParentPath() . substr(hash('sha1', json_encode($aRequest)), 0, 6);
262262

263263
$aMessage = array(
264264
'action' => 'Log.Start',

0 commit comments

Comments
 (0)