summaryrefslogtreecommitdiff
path: root/framework/Web/THttpRequest.php
diff options
context:
space:
mode:
authorxue <>2006-02-09 14:32:13 +0000
committerxue <>2006-02-09 14:32:13 +0000
commit47088abad9dbdd4ea24180753fa47ea3e363390c (patch)
tree966c86862df4eb6bfd964fdbb7649d0eba1e8526 /framework/Web/THttpRequest.php
parentaa46c9ab78abdd23c273c5e49b402a87a2aefcdb (diff)
Added Printer-friendly version of quickstart tutorial.
Diffstat (limited to 'framework/Web/THttpRequest.php')
-rw-r--r--framework/Web/THttpRequest.php22
1 files changed, 14 insertions, 8 deletions
diff --git a/framework/Web/THttpRequest.php b/framework/Web/THttpRequest.php
index b8db56d6..12d1ccd6 100644
--- a/framework/Web/THttpRequest.php
+++ b/framework/Web/THttpRequest.php
@@ -83,6 +83,12 @@ class THttpRequest extends TMap implements IModule
private $_urlFormat='Get';
private $_services;
private $_requestResolved=false;
+
+ /**
+ * @var string request URL
+ */
+ private $_url=null;
+
/**
* @var string module id
*/
@@ -795,14 +801,14 @@ class TUri extends TComponent
if(($ret=@parse_url($uri))!==false)
{
// decoding???
- $this->_scheme=$ret['scheme'];
- $this->_host=$ret['host'];
- $this->_port=$ret['port'];
- $this->_user=$ret['user'];
- $this->_pass=$ret['pass'];
- $this->_path=$ret['path'];
- $this->_query=$ret['query'];
- $this->_fragment=$ret['fragment'];
+ $this->_scheme=isset($ret['scheme'])?$ret['scheme']:'';
+ $this->_host=isset($ret['host'])?$ret['host']:'';
+ $this->_port=isset($ret['port'])?$ret['port']:'';
+ $this->_user=isset($ret['user'])?$ret['user']:'';
+ $this->_pass=isset($ret['pass'])?$ret['pass']:'';
+ $this->_path=isset($ret['path'])?$ret['path']:'';
+ $this->_query=isset($ret['query'])?$ret['query']:'';
+ $this->_fragment=isset($ret['fragment'])?$ret['fragment']:'';
$this->_uri=$uri;
}
else