Forces ampersand as query separator for mailers

This commit is contained in:
Vlad
2017-03-08 14:34:35 -05:00
parent 3a9db95c37
commit d05d033727
2 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ class AmazonSES {
'Authorization' => $this->signRequest($body), 'Authorization' => $this->signRequest($body),
'X-Amz-Date' => $this->date 'X-Amz-Date' => $this->date
), ),
'body' => urldecode(http_build_query($body)) 'body' => urldecode(http_build_query($body, null, '&'))
); );
} }
@ -175,7 +175,7 @@ class AmazonSES {
'x-amz-date:' . $this->date, 'x-amz-date:' . $this->date,
'', '',
'host;x-amz-date', 'host;x-amz-date',
hash($this->hash_algorithm, urldecode(http_build_query($body))) hash($this->hash_algorithm, urldecode(http_build_query($body, null, '&')))
)); ));
} }

View File

@ -75,7 +75,7 @@ class SendGrid {
'headers' => array( 'headers' => array(
'Authorization' => $this->auth() 'Authorization' => $this->auth()
), ),
'body' => http_build_query($body) 'body' => http_build_query($body, null, '&')
); );
} }
} }