Skip to content
This repository was archived by the owner on May 18, 2020. It is now read-only.

Commit 3bd0a3f

Browse files
committed
Added uri encoding to delete user email
1 parent ff6f484 commit 3bd0a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sendinblue-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ SendinblueAPI.prototype.delete_user = function(data, cb) {
870870
var email = data.email;
871871

872872
delete data.email;
873-
this.delete_request('user/' + email, '', function(error, result) {
873+
this.delete_request('user/' + encodeURIComponent(email), '', function(error, result) {
874874
if (error) {
875875
return cb(error, null);
876876
}

0 commit comments

Comments
 (0)