Subject: | XML::eXistDB::RPC doesn't accept filename for DOCUMENT |
Hi,
The XML::eXistDB::RPC _document method as a bug when check for filename.
L.92 is : (test if the argument has a newline)
if($_[0] =~ m/[\r\n]/ && -f $_[0])
When it should be : (chack that argument hasn't any newline)
if($_[0] !~ m/[\r\n]/ && -f $_[0])
So passing a filename for DOCUMENT failed with the "error : do not
understand document via <filename>"
Best regards,
Grégoire