From 1b07c8be71df7a20411592d3f154fc741b1a0502 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 20 Dec 2013 16:17:46 +0100 Subject: [PATCH] open_basedir fix --- mdref/Path.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mdref/Path.php b/mdref/Path.php index efa208a..e0d00c7 100644 --- a/mdref/Path.php +++ b/mdref/Path.php @@ -70,7 +70,15 @@ class Path * @return string */ function getFullPath($ext = "") { - return $this->baseDir . DIRECTORY_SEPARATOR . $this->path . $ext; + $path = ""; + if (strlen($this->baseDir)) { + $path .= $this->baseDir . DIRECTORY_SEPARATOR; + } + if (strlen($this->path)) { + $path .= $this->path; + } + $path .= $ext; + return $path; } /** @@ -97,4 +105,4 @@ class Path } return $head . "
" . $html ."
"; } -} \ No newline at end of file +} -- 2.30.2