2011-06-13 Sancho Lerena <slerena@artica.es>

* Tools.pm: Avoid errors when provide an empty string to md5.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4437 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2011-06-13 14:03:59 +00:00
parent 74e616e5a8
commit 64f1786c58
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2011-06-13 Sancho Lerena <slerena@artica.es>
* Tools.pm: Avoid errors when provide an empty string to md5.
* NetworkServer.pm: Avoid warning messages on pandora_server.error
2011-06-10 Ramon Novoa <rnovoa@artica.es>

View File

@ -575,6 +575,10 @@ sub md5_init () {
sub md5 ($) {
my $str = shift;
if (!defined($str)){
return "";
}
# Note: All variables are unsigned 32 bits and wrap modulo 2^32 when calculating
# Initialize variables