From c9cbb1a2891543bff1c459af18c2c62f47a17d28 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 18 Nov 2005 00:46:02 +0000 Subject: --- framework/Web/UI/TThemeManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php index 9b7dc6a6..f98563e0 100644 --- a/framework/Web/UI/TThemeManager.php +++ b/framework/Web/UI/TThemeManager.php @@ -121,9 +121,9 @@ class TTheme extends TTemplate public function __construct($content,$themePath) { - $this->_themePath=strtr($themePath,'\\','/'); + $this->_themePath=realpath($themePath); $basePath=dirname(Prado::getApplication()->getRequest()->getPhysicalApplicationPath()); - if(($pos=strpos($this->_themePath,$basePath))===false) + if($this->_themePath===false || ($pos=strpos($this->_themePath,$basePath))===false) throw new TConfigurationException('theme_themepath_invalid',$themePath); else { -- cgit v1.2.3