Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle placeholders in URL #95

Open
hublol opened this issue May 3, 2022 · 1 comment
Open

Handle placeholders in URL #95

hublol opened this issue May 3, 2022 · 1 comment

Comments

@hublol
Copy link

hublol commented May 3, 2022

Keepass supports placeholders in the URL field:
https://keepass.info/help/base/placeholders.html

In particular, I use environment variables in some of my URLs. For those URLs, keepassnatmsg doesn't seem to return credentials.
I guess that this is because there is a mismatch between the URL in the browser, and the URL in Keepass which contains the placeholder.
The question is: is there a way to get the URL post-substitution from Keepass? If so, it would make sense for keepassnatmsg to use this before comparing the URLs.

@smorks
Copy link
Owner

smorks commented May 3, 2022

i believe i'd have to iterate through every URL field, then expend the placeholders, then check if they match the url. i would likely add an option for this since with large db's it would be a performance issue.

we are already doing something similar for regex's in url, so i don't think this should be too difficult too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants