Re: Where can I find the Git repository for libfile-keepass-perl

Damyan Ivanov <[email protected]> Sat, 26 Jul 2025 17:51:17 +0300
Newsgroups gmane.linux.debian.devel.perl
Message-ID <20250726145117.5kgc73uuo62jag37@fbd7c150-3361-11e8-8c11-5badabdd4a8d>
-=| Andreas Tille, 26.07.2025 15:29:28 +0200 |=-
> Any comment about bug #1007914?

I think the problem is on line 1248 of lib/File/KeePass.pm:

    s/([^\x00-\x7F])/'&#'.(ord $1).';'/ge;

It replaces all non-ASCII characters with &#<ord>;.

Notably, this does not affect any controll characters like the escape 
character (which is a perfectly valid ASCII character, just not 
allowed in XML). It would also not work for vertical tab, nul and all 
sorts of other funny characters.

Changing that to

    s/([^\x20-\x7F])/'&#'.(ord $1).';'/ge;

would fix the problem.

Or at least I think so. With no way to replicate the issue, I am just 
poking blindly here.


-- Damyan