mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
fhem.pl: check for uniqueID manipulation (Forum #96172)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@18423 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
74b4ce16a9
commit
7b0df4a574
5
fhem.pl
5
fhem.pl
@ -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