From 6cdf9ae12b0e45c90f60c005cd2f0091c43c32a9 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 24 Feb 2012 19:25:55 +0100 Subject: [PATCH] Accept and process relative/incomplete paths with the dir: directive (dont anchor path phrase is path does not start with /) --- src/rcldb/searchdata.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rcldb/searchdata.cpp b/src/rcldb/searchdata.cpp index a3127907..afc9578a 100644 --- a/src/rcldb/searchdata.cpp +++ b/src/rcldb/searchdata.cpp @@ -291,7 +291,8 @@ bool SearchData::toNativeQuery(Rcl::Db &db, void *d) vector vpath; stringToTokens(m_topdir, vpath, "/"); vector pvpath; - pvpath.push_back(pathelt_prefix); + if (m_topdir[0] == '/') + pvpath.push_back(pathelt_prefix); for (vector::const_iterator it = vpath.begin(); it != vpath.end(); it++){ pvpath.push_back(pathelt_prefix + *it);