Skip to content

Commit 36dc63a

Browse files
committed
Encode special characters in commit messages for package.xml
1 parent 371d990 commit 36dc63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/prep-release.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function usage() {
194194
$fullnotes = file($changelog, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
195195
$NOTES = array();
196196
foreach($fullnotes as $note) {
197-
$note = " " . str_replace("&", "&", trim($note));
197+
$note = " " . htmlspecialchars(trim($note), ENT_NOQUOTES);
198198
/* PHP PHPC JIRA Project */
199199
if (strstr($note, "PHPC-") !== false) {
200200
$NOTES[] = $note;

0 commit comments

Comments
 (0)