mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
47_OBIS: Remove ctrl characters in strings
git-svn-id: https://svn.fhem.de/fhem/trunk@25436 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9f84bd7488
commit
40259bb63f
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- bugfix: 47_OBIS: remove control characters in strings
|
||||
- feature: 10_KNX: KNX_scan Utility function
|
||||
- bugfix: 82_LGTV_WebOS: rewrite and change code, fix bugs of older version
|
||||
- bugfix: 88_HMCCU: Bugfixes and improvements
|
||||
|
@ -410,6 +410,7 @@ sub OBIS_Parse_List
|
||||
$str=$SML_specialities{"HEX2"}[1]->($str)
|
||||
} else {
|
||||
$str=~s/([A-F0-9]{2})/chr(hex($1))/eg;
|
||||
$str=~s/[[:cntrl:]]//g;
|
||||
$str=~s/[^!-~\s\r\n\t]//g;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user