Skip to content

Commit

Permalink
Fixes the changelog processor not escaping usernames. (tgstation#17486)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStonedOne authored and KorPhaeron committed May 11, 2016
1 parent 5831905 commit 49e78d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/github_webhook_processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ function checkchangelog($payload, $merge = false) {
if (!count($changelogbody))
return;

$file = 'author: '.$username."\n";
$file = 'author: '.trim(str_replace(array("\\", '"'), array("\\\\", "\\\""), $username))."\n";
$file .= "delete-after: True\n";
$file .= "changes: \n";
foreach ($changelogbody as $changelogitem) {
Expand Down

0 comments on commit 49e78d7

Please sign in to comment.