[url] Fix URL Parsing Bugs and Improve Validation #10482

Open
Raghaddahi wants to merge 5 commits from Raghaddahi/fix/1566-url-class-bugs into master

5 commits

Author SHA1 Message Date
2b1f9d37fc
Update linux-check.yaml
Signed-off-by: Raghaddahi <raghaddahi27@gmail.com>
2025-03-16 08:25:46 +02:00
3f5cf7008e Add setup-mock-files.sh script to create mock files 2025-03-16 08:16:40 +02:00
cafbe4aa08 [url] Fix URL class handling of invalid URLs
The current implementation incorrectly validates URLs without a host (e.g., 'https://')
and URLs with invalid schemes (e.g., '@&€:1;asf'). This change updates the URL
parsing logic to reject such URLs, ensuring that only valid URLs are accepted.

Fixes: #1566
Signed-off-by: Raghad Dahi <raghaddahi27@gmail.com>
2025-03-13 07:45:21 +02:00
d18a46ac6a Fix URL validation logic (closes #1566)
Signed-off-by: Raghad Dahi <raghaddahi27@gmail.com>
2025-03-13 07:45:21 +02:00
8766e8974a modified parse url funcation and added more url tests
Signed-off-by: Raghad Dahi <raghaddahi27@gmail.com>
2025-03-13 07:45:21 +02:00