Commit 54fc2dd
This commit addresses two issues identified in CodeQL security scanning:
1. Fixed invalid default email address format: Changed from
'noreply.aletheia-probe.org' to 'noreply@aletheia-probe.org'
(missing '@' symbol)
2. Replaced substring matching with exact User-Agent format validation
in tests to avoid triggering incomplete URL sanitization warnings
The original CodeQL alert was a false positive (the code wasn't validating
URLs for security purposes), but the investigation revealed a real bug in
the default email format. The improved test assertions now verify the exact
expected User-Agent format, which is more robust and avoids security scanner
warnings.
Co-authored-by: florath-ai-assistant[bot] <Andreas.Florath@telekom.de>
1 parent 42332cb commit 54fc2dd
File tree
2 files changed
+8
-5
lines changed- src/aletheia_probe
- tests/unit
2 files changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
109 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| |||
0 commit comments