mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
fhem.pl: check for uniqueID manipulation (Forum #96172)
git-svn-id: https://svn.fhem.de/fhem/trunk@18423 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d99bc81abc
commit
2c7c1738e7
@ -5354,7 +5354,10 @@ sub
|
||||
getUniqueId()
|
||||
{
|
||||
my ($err, $uniqueID) = getKeyValue("uniqueID");
|
||||
return $uniqueID if(defined($uniqueID));
|
||||
if(defined($uniqueID)) {
|
||||
$uniqueID =~ s/[^0-9a-f]//g;
|
||||
return $uniqueID if($uniqueID && length($uniqueID) == 32);
|
||||
}
|
||||
$uniqueID = createUniqueId();
|
||||
setKeyValue("uniqueID", $uniqueID);
|
||||
return $uniqueID;
|
||||
|
Loading…
x
Reference in New Issue
Block a user