76_MSGMail: Clean up net::smtp version number before comparison

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12723 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
gandy92 2016-12-07 16:55:33 +00:00
parent 56a7a54e8a
commit 41b3f4e1fa
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 76_MSGMail: Clean up net::smtp version number before comparison
- bugix: 14_Hideki: fixed wrong return in ParseFn (msg533900)
14_SD_WS: fixed wrong return in ParseFn (msg533900)
90_SIGNALduino_un: fixed wrong return in ParseFn (msg533900)

View File

@ -68,7 +68,8 @@ sub MSGMail_Initialize($)
# check version of libnet - if < 3.00, try to load Net::SMTP::SSL
$MSGMail_SMTP = $Net::SMTP::VERSION;
if ($Net::SMTP::VERSION >= 3)
$MSGMail_SMTP =~ s/[^0-9.].*$//;
if ($MSGMail_SMTP >= 3.00)
{
$MSGMail_SSL = 1;
}