summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2006-02-19 23:14:58 +0000
committerxue <>2006-02-19 23:14:58 +0000
commit4ed5ce91c7b1c0e6e5262734711f630ee82e3f1c (patch)
treeb5cca04146c5620c90abef04c55f292db5aeba00 /framework
parent54572d1e4a5914e44bcd35fa9406ea72a8f2066f (diff)
Added more check to publishFilePath.
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/TAssetManager.php2
1 files changed, 1 insertions, 1 deletions
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))
{