From bf88fb942d624f40218716d375744aa14b3406a8 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sat, 24 May 2014 16:14:08 +0200 Subject: Prevented FilesystemContext from resolving absolute paths * there are situations where one may pass absolute paths to external functions which should not be resolved against the context path ** for example when reading files found by "read-directory" through its "full" value node * this could be checked by the external functions themself ** but as this check is required by all of them it is better implemented in the FilesystemContext --- src/function/read_directory.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/function/read_directory.cc') diff --git a/src/function/read_directory.cc b/src/function/read_directory.cc index a3995ec..f4baff6 100644 --- a/src/function/read_directory.cc +++ b/src/function/read_directory.cc @@ -37,8 +37,8 @@ xercesc::DOMDocument* FunctionReadDirectory::constructDocument( switch ( boost::filesystem::status(p).type() ) { case boost::filesystem::regular_file: { - result.setAttribute("type", "file"); - result.setValueNode("name", p.stem().string()); + result.setAttribute("type", "file"); + result.setValueNode("name", p.stem().string()); result.setValueNode("extension", p.extension().string()); break; -- cgit v1.2.3