From c7cd20588324b852123702bdbc3dafdd973db4c8 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 21 Jul 2007 07:38:18 +0000 Subject: issue58, auto-append pending slash if missing git-svn-id: file:///var/lib/svn/phpfspot/trunk@229 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot_cfg.php.dist | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'phpfspot_cfg.php.dist') 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) -- cgit v1.2.3-18-g5258