Ruff: Add PLC1901 to dojo/models #13178
Merged
DryRunSecurity / General Security Analyzer
succeeded
Sep 15, 2025 in 2s
DryRun Security
Details
General Security Analyzer Findings: 1 detected
⚠️ Potential Type Confusion (None vs. Empty String) dojo/models.py (click for details)
| Type | Potential Type Confusion (None vs. Empty String) |
| Description | The clean method now explicitly converts empty string values for protocol, userinfo, path, query, and fragment to None. This change in type from an empty string to None can lead to TypeError exceptions in downstream code that expects a string and does not handle None values, potentially causing a denial of service. |
| Filename | dojo/models.py |
| CodeLink | django-DefectDojo/dojo/models.py Lines 1826 to 1841 in 4783658 |
Loading