Fixes changelog generator's handling of odd names in author field

tested and works with :, its escaped so it will work with " and \ too
This commit is contained in:
Kyle Spier-Swenson
2016-06-10 04:15:32 -07:00
committed by GitHub
parent 0fa74bee02
commit 640a81daa1
+1 -1
View File
@@ -251,7 +251,7 @@ function checkchangelog($payload, $merge = false) {
if (!count($changelogbody))
return;
$file = 'author: '.trim(str_replace(array("\\", '"'), array("\\\\", "\\\""), $username))."\n";
$file = 'author: "'.trim(str_replace(array("\\", '"'), array("\\\\", "\\\""), $username)).'"'."\n";
$file .= "delete-after: True\n";
$file .= "changes: \n";
foreach ($changelogbody as $changelogitem) {