mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-09 23:27:56 +01:00
Fixes the changelog processor not escaping usernames. (#17486)
This commit is contained in:
committed by
KorPhaeron
parent
58319051dd
commit
49e78d7d04
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user