2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-12 16:46:35 +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:
gvzdus 2022-01-08 09:28:37 +00:00
parent 9f84bd7488
commit 40259bb63f
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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;
}
}