Skip to content

Commit

Permalink
refactor(url): enhance URL rule validation with domain checks + priva…
Browse files Browse the repository at this point in the history
…te network check

- Use proper public domain (`public_suffix`) validation checking both structure and access

- Add pattern loading with memoization for private/reserved domains

- Fix error message consistency across validation scenarios

- Add tests for validation scenarios
  • Loading branch information
RaneemAlRushud committed Nov 3, 2024
1 parent 1014dab commit 6fa45ae
Show file tree
Hide file tree
Showing 5 changed files with 197 additions and 288 deletions.
130 changes: 0 additions & 130 deletions lib/mini_defender/data/public_domain_patterns.txt

This file was deleted.

130 changes: 0 additions & 130 deletions lib/mini_defender/detectors/public_domain_detector.rb

This file was deleted.

Loading

0 comments on commit 6fa45ae

Please sign in to comment.