Skip to content

allow words to be in the template#169

Merged
ehsandeep merged 1 commit intoprojectdiscovery:mainfrom
meme-lord:main
Feb 21, 2025
Merged

allow words to be in the template#169
ehsandeep merged 1 commit intoprojectdiscovery:mainfrom
meme-lord:main

Conversation

@meme-lord
Copy link
Contributor

This fixes #168
The check strings.Contains(template, word) has lots of unintended consequences.
Examples:
api-pizzapie.site.com would not be allowed as pizzapie contains api
site-api.site.com would not be allowed as site is in the template {{word}}-api.site.com
dev-api.site.dev would not be allowed as dev is in the template {{word}}-api.site.dev

I thought about adding a command option or adding a more complex check but decided just removing it is better.
I don't think the optimization saves much anyway, DNS requests are cheap.

Copy link
Member

@dwisiswant0 dwisiswant0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for the PR! It seems like this is more of a refactor than a bug fix since it would change the functionality.

@ehsandeep ehsandeep merged commit 6fdd9fe into projectdiscovery:main Feb 21, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expected output is missing

3 participants