mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
fhem.pl: use goodDeviceName in rename (Forum #75588)
git-svn-id: https://svn.fhem.de/fhem/trunk@14932 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f224f20ef0
commit
1229ecc96f
@ -2474,8 +2474,8 @@ CommandRename($$)
|
||||
|
||||
return "Please define $old first" if(!defined($defs{$old}));
|
||||
return "$new already defined" if(defined($defs{$new}));
|
||||
return "Invalid characters in name (not A-Za-z0-9.:_): $new"
|
||||
if($new !~ m/^[a-z0-9.:_]*$/i);
|
||||
return "Invalid characters in name (not A-Za-z0-9._): $new"
|
||||
if(!goodDeviceName($new));
|
||||
return "Cannot rename global" if($old eq "global");
|
||||
|
||||
%ntfyHash = ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user