From 640a81daa13173e640066b2646a296b30c1b4cd3 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Fri, 10 Jun 2016 04:15:32 -0700 Subject: [PATCH] Fixes changelog generator's handling of odd names in author field tested and works with :, its escaped so it will work with " and \ too --- tools/github_webhook_processor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/github_webhook_processor.php b/tools/github_webhook_processor.php index 49840e62e00..67f79fdd605 100644 --- a/tools/github_webhook_processor.php +++ b/tools/github_webhook_processor.php @@ -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) {