Accept and process relative/incomplete paths with the dir: directive (dont anchor path phrase is path does not start with /)
This commit is contained in:
parent
3fd65ea4cf
commit
6cdf9ae12b
@ -291,7 +291,8 @@ bool SearchData::toNativeQuery(Rcl::Db &db, void *d)
|
|||||||
vector<string> vpath;
|
vector<string> vpath;
|
||||||
stringToTokens(m_topdir, vpath, "/");
|
stringToTokens(m_topdir, vpath, "/");
|
||||||
vector<string> pvpath;
|
vector<string> pvpath;
|
||||||
pvpath.push_back(pathelt_prefix);
|
if (m_topdir[0] == '/')
|
||||||
|
pvpath.push_back(pathelt_prefix);
|
||||||
for (vector<string>::const_iterator it = vpath.begin();
|
for (vector<string>::const_iterator it = vpath.begin();
|
||||||
it != vpath.end(); it++){
|
it != vpath.end(); it++){
|
||||||
pvpath.push_back(pathelt_prefix + *it);
|
pvpath.push_back(pathelt_prefix + *it);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user