From 5afc207d28f290936dca8fcdcab3157d3056379a Mon Sep 17 00:00:00 2001 From: Von Welch Date: Mon, 11 Feb 2013 22:08:30 -0500 Subject: keepassx2pass.py should handle empty passwords and entry names containing slash ('/') characters --- contrib/keepassx2pass.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'contrib') diff --git a/contrib/keepassx2pass.py b/contrib/keepassx2pass.py index 6043690..1804e33 100755 --- a/contrib/keepassx2pass.py +++ b/contrib/keepassx2pass.py @@ -11,13 +11,14 @@ from xml.etree import ElementTree def path_for(element, path=''): """ Generate path name from elements title and current path """ - title = element.find('title').text + title = element.find('title').text.replace("/", "|") return '/'.join([path, title]) def password_data(element): """ Return password data and additional info if available from password entry element. """ - ret = element.find('password').text + "\n" + passwd = element.find('password').text + ret = passwd + "\n" if passwd else "\n" for field in ['username', 'url', 'comment']: fel = element.find(field) if fel.text is not None: -- cgit v1.2.3