Skip to content

Commit

Permalink
Update _in_the_wild.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MHassanAr committed Feb 18, 2025
1 parent 0287a33 commit c1597d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shared_collector/scripts/_in_the_wild.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ def parse_leak_data(self, page: Page):

if len(report_cards) > 1:
second_card_link = report_cards[1].query_selector(".chakra-link")
if second_card_link and "github.com" in second_card_link.get_attribute("href"):
social_media_profile = second_card_link.get_attribute("href")
if second_card_link:
second_card_url = second_card_link.get_attribute("href")
if second_card_url and second_card_url.startswith("https://github.com"):

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High

The string
https://github.com
may be at an arbitrary position in the sanitized URL.
social_media_profile = second_card_url

page.wait_for_timeout(200)

Expand Down

0 comments on commit c1597d0

Please sign in to comment.