summaryrefslogtreecommitdiff
path: root/framework/Web/THttpRequest.php
diff options
context:
space:
mode:
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