mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Stop interpolating raw exception into settings snackbar
Defense-in-depth: the persisted value is the (XOR-obfuscated) API key, so a future SharedPreferences backend that surfaced the value in its exception could leak it through the UI. Log the detail via debugPrint and show a fixed message to the user instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
140ebab035
commit
9b521e0847
@@ -89,8 +89,9 @@ class _SettingsState extends State<Settings> {
|
||||
UISnackbars.showError(context, 'Failed to save settings');
|
||||
}
|
||||
} catch (e) {
|
||||
debugPrint('Failed to save settings: $e');
|
||||
if (!mounted) return;
|
||||
UISnackbars.showError(context, 'Failed to save settings: $e');
|
||||
UISnackbars.showError(context, 'Failed to save settings');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user