Skip to content

Commit cd71575

Browse files
authored
Update SMTPClient.py
1 parent 6321198 commit cd71575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ClientFolder/SMTPClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def run(self):
4747

4848
if len(userInput) == 0: # This is used to prevent sending an empty message
4949
userInput = userInput + " "
50-
if userInput[0] == ".": # This is used for the DATA part, is a "requirement" of RFC821
50+
if userInput[0] == "." and len(userInput) > 1: # This is used for the DATA part, is a "requirement" of RFC821
5151
userInput = "." + userInput
5252

5353
message = self._module.securityClient.encryptData(userInput)

0 commit comments

Comments
 (0)