Skip to content

Commit

Permalink
Encode special characters in commit messages for package.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed Dec 22, 2015
1 parent 371d990 commit 36dc63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/prep-release.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function usage() {
$fullnotes = file($changelog, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
$NOTES = array();
foreach($fullnotes as $note) {
$note = " " . str_replace("&", "&", trim($note));
$note = " " . htmlspecialchars(trim($note), ENT_NOQUOTES);
/* PHP PHPC JIRA Project */
if (strstr($note, "PHPC-") !== false) {
$NOTES[] = $note;
Expand Down

0 comments on commit 36dc63a

Please sign in to comment.