Skip to content

Commit

Permalink
Update Source/Applications/openHistorian/openHistorian/DataHub.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Lackner <[email protected]>
2 people authored and ritchiecarroll committed Dec 16, 2024
1 parent cea2f06 commit 5d46bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Applications/openHistorian/openHistorian/DataHub.cs
Original file line number Diff line number Diff line change
@@ -1277,7 +1277,7 @@ public string SaveJSONFile(string targetFilePath, string json)

// Prevent file saves outside local file path
if (!targetFilePath.StartsWith(localPath, StringComparison.OrdinalIgnoreCase))
throw new SecurityException("Path access error: Cannot save JSON file outside local file path.");
throw new SecurityException(@"Path access error: Cannot save JSON file outside Grafana\public file path.");

// Prevent saving data that is not valid JSON (helps prevent possible function abuse)
if (!IsValidJson(json))
@@ -1329,4 +1329,4 @@ public bool IsValidJson(string input)

#endregion
}
}
}

0 comments on commit 5d46bfc

Please sign in to comment.