From 518b336f625ecd05122c94b1e27961dbece6ccec Mon Sep 17 00:00:00 2001 From: Hayden Date: Wed, 22 Feb 2023 15:38:53 +0800 Subject: [PATCH] Escape quotes in Oxide plugin names --- src/RustServerMetrics/MetricsLogger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RustServerMetrics/MetricsLogger.cs b/src/RustServerMetrics/MetricsLogger.cs index 5c981b8..06faadb 100644 --- a/src/RustServerMetrics/MetricsLogger.cs +++ b/src/RustServerMetrics/MetricsLogger.cs @@ -186,7 +186,7 @@ internal void OnOxidePluginMetrics(Dictionary 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); });