From 08b5405ef570d97726953e5679f27980ce0b0d98 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 15 Nov 2005 20:51:34 +0000 Subject: tested Master/Content. --- demos/controls/protected/application.xml | 1 + demos/controls/protected/pages/HomePage.tpl | 5 ++++- framework/TApplication.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/demos/controls/protected/application.xml b/demos/controls/protected/application.xml index 3b9f749d..a9d0d922 100644 --- a/demos/controls/protected/application.xml +++ b/demos/controls/protected/application.xml @@ -3,6 +3,7 @@ + diff --git a/demos/controls/protected/pages/HomePage.tpl b/demos/controls/protected/pages/HomePage.tpl index 7774882e..66fd9e71 100644 --- a/demos/controls/protected/pages/HomePage.tpl +++ b/demos/controls/protected/pages/HomePage.tpl @@ -1,3 +1,5 @@ +<%@ MasterClass="Pages.master.MasterPage" %> +

Welcome! <%=$this->User->Name %>

@@ -9,4 +11,5 @@ />
| -
\ No newline at end of file + +
\ No newline at end of file diff --git a/framework/TApplication.php b/framework/TApplication.php index 70b6a9ff..f1a7d316 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -637,7 +637,7 @@ class TApplicationConfiguration extends TComponent if(($id=$aliasNode->getAttribute('id'))!==null && ($path=$aliasNode->getAttribute('path'))!==null) { $path=str_replace('\\','/',$path); - if(preg_match('/^\\/|.:\\//',$path)) // if absolute path + if(preg_match('/^\\/|.:\\/|.:\\\\/',$path)) // if absolute path $p=realpath($path); else $p=realpath($configPath.'/'.$path); -- cgit v1.2.3