From cb35ff15c48750362e1771124ff53f938dcd9a17 Mon Sep 17 00:00:00 2001 From: jez <> Date: Fri, 24 Aug 2007 10:38:13 +0000 Subject: [PATCH] don't try to absolutise an empty string --- src/Utils/uri.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Utils/uri.cpp b/src/Utils/uri.cpp index 28db6f10..3dcdf339 100644 --- a/src/Utils/uri.cpp +++ b/src/Utils/uri.cpp @@ -34,8 +34,11 @@ URI::URI(const URI& base, const std::string& relativeUrl) : path_(base.path_), port_(base.port_) { - URI relUrl(relativeUrl); - absolutise(relUrl); + if(!relativeUrl.empty()) + { + URI relUrl(relativeUrl); + absolutise(relUrl); + } // if ... } // URI const std::string& URI::port() const