summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorcarl <>2007-08-04 18:10:31 +0000
committercarl <>2007-08-04 18:10:31 +0000
commit271e60f4e5a7a7e366f6e95c15c502b79d276bd7 (patch)
tree0e90406efe394923b68f9b5c9464d96355e5648a /framework
parentcef38314ff1bca56b7b2be65c442c7d1a21955d2 (diff)
fixed #533
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/THttpRequest.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/framework/Web/THttpRequest.php b/framework/Web/THttpRequest.php
index bc3f9912..12eb1f0e 100644
--- a/framework/Web/THttpRequest.php
+++ b/framework/Web/THttpRequest.php
@@ -321,11 +321,17 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar
return $_SERVER['REQUEST_METHOD'];
}
+ /**
+ * @param boolean forces http or https on a uri
+ */
public function setForceSecureConnection($value)
{
$this->_forceSecureConnection=TPropertyValue::ensureBoolean($value);
}
+ /**
+ * @return boolean if https is forced on a uri
+ */
public function getForceSecureConnection()
{
return $this->_forceSecureConnection;
@@ -425,7 +431,14 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar
*/
public function getBrowser()
{
- return get_browser();
+ try
+ {
+ return get_browser();
+ }
+ catch(TPhpErrorException $e)
+ {
+ throw new TConfigurationException('httprequest_browscap_required');
+ }
}
/**