Skip to content

Commit

Permalink
fix normalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
hbhossein committed Aug 16, 2023
1 parent 0e54b4b commit 2fcc563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/SignatureService.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public static function normalizer(array $data, array $headers): string
if ($value === '' || $value === null) {
$value = '#';
}
else {
strtr($value, [ '#' => '##']);
elseif (str_contains($value, '#')){
$value = str_replace('#', '##', $value);
}

$normalizedData[] = $value;
Expand Down

0 comments on commit 2fcc563

Please sign in to comment.