summaryrefslogtreecommitdiffstats
path: root/phpfspot_cfg.php.dist
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-21 07:38:18 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-21 07:38:18 +0000
commitc7cd20588324b852123702bdbc3dafdd973db4c8 (patch)
treeb12d5f97ce533dc04af216bd8e94ff17af4b56ff /phpfspot_cfg.php.dist
parent4079ac52ab60d1d48bd79514d62955b3ee4ebe5e (diff)
issue58, auto-append pending slash if missing
git-svn-id: file:///var/lib/svn/phpfspot/trunk@229 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot_cfg.php.dist')
-rw-r--r--phpfspot_cfg.php.dist4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpfspot_cfg.php.dist b/phpfspot_cfg.php.dist
index 42baa16..adbe0da 100644
--- a/phpfspot_cfg.php.dist
+++ b/phpfspot_cfg.php.dist
@@ -117,6 +117,10 @@ class PHPFSPOT_CFG {
if(isset($this->error_found) && $this->error_found)
exit(1);
+ /* check for pending slash on web_path */
+ if(!preg_match("/\/$/", $this->web_path))
+ $this->web_path.= "/";
+
} // __construct()
private function showError($text)