Skip to content

Commit 1e2699b

Browse files
authored
Fixes #303: Escape html special chars when updating time entries (#304)
1 parent 17950ad commit 1e2699b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Redmine/Api/TimeEntry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function update($id, array $params)
114114
if ('custom_fields' === $k && is_array($v)) {
115115
$this->attachCustomFieldXML($xml, $v);
116116
} else {
117-
$xml->addChild($k, $v);
117+
$xml->addChild($k, htmlspecialchars($v));
118118
}
119119
}
120120

0 commit comments

Comments
 (0)