mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-12 22:56:34 +00:00
rename bugfix
git-svn-id: https://svn.fhem.de/fhem/trunk@2203 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
18c534358c
commit
1053df99d1
@ -24,6 +24,7 @@
|
||||
loading automatically. A restart is required now! (M. Fischer)
|
||||
- feature: 98_update.pm saves the statefile before an update (M. Fischer)
|
||||
- feature: FHEMWEB longpoll reconnect (Matthias)
|
||||
- bugfix: rename may overwrite other devices
|
||||
|
||||
- 2012-10-28 (5.3)
|
||||
- feature: added functions trim, ltrim, rtrim, UntoggleDirect,
|
||||
|
@ -1548,6 +1548,7 @@ CommandRename($$)
|
||||
$old = "''" if(!defined($old));
|
||||
|
||||
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 "Cannot rename global" if($old eq "global");
|
||||
|
Loading…
x
Reference in New Issue
Block a user