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

Need to xml escape when building items #5

Open
unpoetical opened this issue Oct 26, 2017 · 0 comments
Open

Need to xml escape when building items #5

unpoetical opened this issue Oct 26, 2017 · 0 comments

Comments

@unpoetical
Copy link

I have a password entry with an & in the entry title. The alfred keepass workflow blows up on an invalid xml string.

In alfredworkflow.rb, need to add encode(:xml => :text) to each string we are going to embed in the xml.

        string_buffer += kp_item_template % [kp.title.encode(:xml => :text), kp.username.encode(:xml => :text), kp.password.encode(:xml => :text), kp.password.encode(:xml => :text)]
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

No branches or pull requests

1 participant