diff options
author | xue <> | 2006-02-07 19:05:33 +0000 |
---|---|---|
committer | xue <> | 2006-02-07 19:05:33 +0000 |
commit | 60e486b5697030d18311f67de29b95a892c7d95d (patch) | |
tree | b61991b7a3b419d586980ef9a5ad318c1429b4ea /demos/personal/protected | |
parent | ee2e653ec9da8cc311989acf6b21b78d32cc80c3 (diff) |
Added UrlFormat property to THttpRequest.
Diffstat (limited to 'demos/personal/protected')
-rw-r--r-- | demos/personal/protected/Pages/UserLogin.php | 2 | ||||
-rw-r--r-- | demos/personal/protected/application.xml | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/demos/personal/protected/Pages/UserLogin.php b/demos/personal/protected/Pages/UserLogin.php index ba33f1fa..ce653179 100644 --- a/demos/personal/protected/Pages/UserLogin.php +++ b/demos/personal/protected/Pages/UserLogin.php @@ -13,7 +13,7 @@ class UserLogin extends TPage {
parent::onLoadComplete($param);
if($this->IsPostBack && $this->IsValid)
- $this->Response->redirect($this->Request['ReturnUrl']);
+ $this->Response->redirect($this->Application->getModule('auth')->getReturnUrl());
}
}
diff --git a/demos/personal/protected/application.xml b/demos/personal/protected/application.xml index 5015bab0..4c26afec 100644 --- a/demos/personal/protected/application.xml +++ b/demos/personal/protected/application.xml @@ -6,6 +6,9 @@ <!-- Remove this comment mark to enable caching
<module id="cache" class="System.Data.TSqliteCache" />
-->
+ <!-- Remove this comment mark to enable PATH url format
+ <module id="request" class="THttpRequest" UrlFormat="Path" />
+ -->
<module id="session" class="THttpSession" />
<module id="log" class="System.Log.TLogRouter">
<route class="TBrowserLogRoute" Categories="System.Web.UI.TPage" />
|