IXR_Library: do not trim xml values, there's no reason for. closes https://github.com/opnsense/core/pull/4707
xml-rpc isn't used very often these days, it proably doesn't make sense to try to upstream this change since the library doesn't seem to be very active anymore. When values are of non string type, it makes sense to trim() for safety, for strings leading spaces can have a meaning.
This commit is contained in:
parent
e283a5942d
commit
a65e793cb4
|
@ -274,7 +274,7 @@ class IXR_Message
|
|||
$valueFlag = true;
|
||||
break;
|
||||
case 'string':
|
||||
$value = (string)trim($this->_currentTagContents);
|
||||
$value = (string)$this->_currentTagContents;
|
||||
$valueFlag = true;
|
||||
break;
|
||||
case 'dateTime.iso8601':
|
||||
|
|
Loading…
Reference in New Issue