From a2bb6b40fa09b9d25a610ea71854bfd06ee538cf Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 7 Feb 2006 02:31:27 +0000 Subject: Fixed a bug in generating URLs with double slashes. --- framework/Web/UI/TThemeManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web/UI/TThemeManager.php') diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php index f29a8def..51796046 100644 --- a/framework/Web/UI/TThemeManager.php +++ b/framework/Web/UI/TThemeManager.php @@ -123,7 +123,7 @@ class TThemeManager extends TModule $basePath=$this->getBasePath(); if(strpos($basePath,$appPath)===false) throw new TConfigurationException('thememanager_baseurl_required'); - $appUrl=dirname($this->getRequest()->getApplicationPath()); + $appUrl=rtrim(dirname($this->getRequest()->getApplicationPath()),'/'); $this->_baseUrl=$appUrl.strtr(substr($basePath,strlen($appPath)),'\\','/'); } return $this->_baseUrl; -- cgit v1.2.3