Skip to content

Commit

Permalink
url: fix premature loop termination
Browse files Browse the repository at this point in the history
  • Loading branch information
SnoopJ committed Mar 28, 2023
1 parent 799eb63 commit 42dff14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sopel/modules/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,10 @@ def process_urls(

parsed_url = urlparse(url)

# Check the URL does not match an existing URL callback
if check_callbacks(bot, url, use_excludes=not requested):
# URL matches a callback OR is excluded, ignore
yield (url, None, None, None, True)
return
continue

# Prevent private addresses from being queried if enable_private_resolution is False
# FIXME: This does nothing when an attacker knows how to host a 302
Expand Down

0 comments on commit 42dff14

Please sign in to comment.