[pass] Lastpass import doesn't escape HTML entities

Robert Richter robert.c.richter at gmail.com
Sat Jul 16 18:31:37 CEST 2016


I don't know if Lastpass started doing this after the Lastpass import
script was written, but the CSV export is now escaped as HTML. That
means that any passwords are imported incorrectly if they have ampersands.

This would be fairly easy to correct, there is a "cgi" module that
provides a function "CGI.unescapeHTML" that processes these entities
back into single characters. I've attached a patch that does this.
-- 
Robert Richter
https://about.me/robert.richter
<https://about.me/robert.richter?promo=email_sig&utm_source=email_sig&utm_medium=email_sig&utm_campaign=external_links>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20160716/bdf312d2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Escape-HTML-entities.patch.sig
Type: application/pgp-signature
Size: 287 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20160716/bdf312d2/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Escape-HTML-entities.patch
Type: text/x-patch
Size: 951 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20160716/bdf312d2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xFD583641.asc
Type: application/pgp-keys
Size: 5408 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20160716/bdf312d2/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20160716/bdf312d2/attachment.asc>


More information about the Password-Store mailing list