diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-08-17 01:11:40 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-08-17 01:22:50 -0400 |
commit | 1ba57443f6944c1fb0347c44676af0be889b9ed8 (patch) | |
tree | 12111910a420c80e32f3b3cc48bc5609d91a7faa /bin | |
parent | da13b26bad886ce68a0356f2b9c8307cf7569de9 (diff) | |
download | conf-1ba57443f6944c1fb0347c44676af0be889b9ed8.tar.gz conf-1ba57443f6944c1fb0347c44676af0be889b9ed8.zip |
fix the export script
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pwsafe2pass | 10 |
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/>/>/g; # not a typo, they really forgot the ; + s/</</g; + s/&/\&/g; + + $_ } split /\t/, $line; # XXX pass doesn't handle filenames with spaces properly |