[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



-=| 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


Reply to: