Skip to content

Commit

Permalink
Validate sentry uri before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
Guerra24 committed Jan 14, 2025
1 parent e6dd638 commit e3b6765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LRReader.UWP/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public App()
Init.EarlyInit();
// Manually read setting to prevent services from initializing too early
var crashReporting = ApplicationData.Current.LocalSettings.Values["CrashReporting"];
if ((bool)(crashReporting ?? true))
if ((bool)(crashReporting ?? true) && Uri.IsWellFormedUriString(Secrets.SentryDsn, UriKind.Absolute))
{
#if !DEBUG
SentrySdk.Init(options =>
Expand Down

0 comments on commit e3b6765

Please sign in to comment.