From 4ed5ce91c7b1c0e6e5262734711f630ee82e3f1c Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 19 Feb 2006 23:14:58 +0000 Subject: Added more check to publishFilePath. --- framework/Web/TAssetManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Web/TAssetManager.php b/framework/Web/TAssetManager.php index 6a7d8ad8..267505c7 100644 --- a/framework/Web/TAssetManager.php +++ b/framework/Web/TAssetManager.php @@ -154,7 +154,7 @@ class TAssetManager extends TModule { if(isset($this->_published[$path])) return $this->_published[$path]; - else if(($fullpath=realpath($path))===false) + else if(empty($path) || ($fullpath=realpath($path))===false) throw new TInvalidDataValueException('assetmanager_filepath_invalid',$path); else if(is_file($fullpath)) { -- cgit v1.2.3