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]>
  • Loading branch information
StephenCWills and clackner-gpa committed Dec 12, 2024
1 parent 73d798b commit a380646
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
Expand Up @@ -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))
Expand Down Expand Up @@ -1329,4 +1329,4 @@ public bool IsValidJson(string input)

#endregion
}
}
}

0 comments on commit a380646

Please sign in to comment.