Skip to content

Commit

Permalink
Escape quotes in Oxide plugin names
Browse files Browse the repository at this point in the history
  • Loading branch information
features-not-bugs committed Feb 22, 2023
1 parent 7e8a109 commit 518b336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RustServerMetrics/MetricsLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ internal void OnOxidePluginMetrics(Dictionary<string, double> metrics)
UploadPacket("oxide_plugins", metric, (builder, report) =>
{
builder.Append(",plugin=\"");
builder.Append(report.Key);
builder.Append(report.Key.Replace("\"", "\\\""));
builder.Append("\" hookTime=");
builder.Append(report.Value);
});
Expand Down

0 comments on commit 518b336

Please sign in to comment.