Fix activity log rendering; closes #4208

This commit is contained in:
DaneEveritt 2022-06-30 21:06:50 -04:00
parent 0d0c595909
commit 48af9bced1
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 26 additions and 18 deletions

View file

@ -55,6 +55,11 @@ class ActivityLogTransformer extends BaseClientTransformer
}
if (!is_array($value)) {
// Perform some directory normalization at this point.
if ($key === 'directory') {
$value = str_replace('//', '/', '/' . trim($value, '/') . '/');
}
return [$key => $value];
}