summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-08-17 01:11:40 -0400
committerJesse Luehrs <doy@tozt.net>2013-08-17 01:22:50 -0400
commit1ba57443f6944c1fb0347c44676af0be889b9ed8 (patch)
tree12111910a420c80e32f3b3cc48bc5609d91a7faa /bin
parentda13b26bad886ce68a0356f2b9c8307cf7569de9 (diff)
downloadconf-1ba57443f6944c1fb0347c44676af0be889b9ed8.tar.gz
conf-1ba57443f6944c1fb0347c44676af0be889b9ed8.zip
fix the export script
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pwsafe2pass10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/pwsafe2pass b/bin/pwsafe2pass
index cc21af5..62796e9 100755
--- a/bin/pwsafe2pass
+++ b/bin/pwsafe2pass
@@ -11,7 +11,15 @@ readline;
while (my $line = <>) {
my ($uuid, $group, $name, $login, $passwd, $notes) = map {
- s/^"(.*)"$/$1/; $_
+ s/^"(.*)"$/$1/;
+
+ # sigh
+ s/\\\\/\\/g;
+ s/&gt/>/g; # not a typo, they really forgot the ;
+ s/&lt;/</g;
+ s/&amp;/\&/g;
+
+ $_
} split /\t/, $line;
# XXX pass doesn't handle filenames with spaces properly