From 1f3774634b122e4ace102c8643f6d9281e3a20de Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 16 Nov 2015 19:06:27 +0200 Subject: Make root configuration option notation to be the same as of AP_ROOT configuration variable --- brep/package-details.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'brep/package-details.cxx') diff --git a/brep/package-details.cxx b/brep/package-details.cxx index 780d98a..8be6108 100644 --- a/brep/package-details.cxx +++ b/brep/package-details.cxx @@ -70,7 +70,10 @@ namespace brep // server process. // static const size_t rp (options_->results_on_page ()); - static const dir_path& rt (options_->root ()); + static const dir_path& rt ( + options_->root ().empty () + ? dir_path ("/") + : options_->root ()); const string& name (*rq.path ().rbegin ()); const string en (mime_url_encode (name)); -- cgit v1.1