We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74bf442 + fb3d352 commit 8a3dc92Copy full SHA for 8a3dc92
src/Redmine/Api/TimeEntry.php
@@ -78,7 +78,7 @@ public function create(array $params = [])
78
if ('custom_fields' === $k && is_array($v)) {
79
$this->attachCustomFieldXML($xml, $v);
80
} else {
81
- $xml->addChild($k, $v);
+ $xml->addChild($k, htmlspecialchars($v));
82
}
83
84
tests/Unit/Api/TimeEntryTest.php
@@ -232,6 +232,7 @@ public function testCreateCallsPost()
232
'issue_id' => '15',
233
'project_id' => '25',
234
'hours' => '5.25',
235
+ 'comments' => 'some text with xml entities: & < > " \' ',
236
'custom_fields' => [
237
[
238
'id' => 1,
0 commit comments