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:
Ad Schellevis 2021-02-15 20:53:15 +01:00
parent e283a5942d
commit a65e793cb4
1 changed files with 1 additions and 1 deletions

View File

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