From: Andreas Unterkircher Date: Sat, 21 Jul 2007 07:38:18 +0000 (+0000) Subject: issue58, auto-append pending slash if missing X-Git-Tag: phpfspot-1.2~106 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=c7cd20588324b852123702bdbc3dafdd973db4c8 issue58, auto-append pending slash if missing git-svn-id: file:///var/lib/svn/phpfspot/trunk@229 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- 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)