Skip to content

Commit 5d46bfc

Browse files
StephenCWillsclackner-gpa
authored andcommitted
Update Source/Applications/openHistorian/openHistorian/DataHub.cs
Co-authored-by: Christoph Lackner <52460212+clackner-gpa@users.noreply.github.com>
1 parent cea2f06 commit 5d46bfc

File tree

1 file changed

+2
-2
lines changed
  • Source/Applications/openHistorian/openHistorian

1 file changed

+2
-2
lines changed

Source/Applications/openHistorian/openHistorian/DataHub.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ public string SaveJSONFile(string targetFilePath, string json)
12771277

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

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

13301330
#endregion
13311331
}
1332-
}
1332+
}

0 commit comments

Comments
 (0)