fix from PR review

This commit is contained in:
PacoX
2026-05-13 13:44:42 +02:00
parent 94ed729985
commit 4a066e08dc
3 changed files with 13 additions and 11 deletions
+2 -1
View File
@@ -28,7 +28,8 @@ class NotificationService {
AppLocalizations get _l10n => lookupAppLocalizations(_locale);
String _logSafe(String value) {
return Uri.encodeComponent(value.replaceAll('\n', ' '));
final sanitized = value.replaceAll(RegExp(r'[\x00-\x1F\x7F]'), ' ');
return Uri.encodeComponent(sanitized);
}
// Rate limiting to prevent notification storms