summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2006-06-10 11:17:24 +0000
committerxue <>2006-06-10 11:17:24 +0000
commitbd87a02b43b815f99ab9400709d8269ac56c32f3 (patch)
tree2b498a24456e5eb370ed60755032e35dca0f9dc8 /framework
parentc3404ca887eb20dbf7e3b8d4118d87f4cf39f31e (diff)
Fixed #221.
Diffstat (limited to 'framework')
-rw-r--r--framework/Security/TAuthorizationRule.php2
-rw-r--r--framework/Web/Services/TPageService.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/framework/Security/TAuthorizationRule.php b/framework/Security/TAuthorizationRule.php
index 8248a45a..5c8f0f9b 100644
--- a/framework/Security/TAuthorizationRule.php
+++ b/framework/Security/TAuthorizationRule.php
@@ -137,7 +137,7 @@ class TAuthorizationRule extends TComponent
}
/**
- * @var boolean if this rule applies to everyone
+ * @return boolean if this rule applies to everyone
*/
public function getEveryoneApplied()
{
diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php
index af2ddce3..1df4ffde 100644
--- a/framework/Web/Services/TPageService.php
+++ b/framework/Web/Services/TPageService.php
@@ -695,7 +695,7 @@ class TPageConfiguration extends TComponent
$ps=explode(',',$pages);
foreach($ps as $p)
{
- if($page===trim($p))
+ if(strcasecmp($page,trim($p))===0)
{
$ruleApplies=true;
break;
@@ -719,7 +719,7 @@ class TPageConfiguration extends TComponent
$properties=$node->getAttributes();
if(($id=$properties->itemAt('id'))===null)
throw new TConfigurationException('pageserviceconf_page_invalid',$configPath);
- if($id===$page)
+ if(strcasecmp($id,$page)===0)
$this->_properties=array_merge($this->_properties,$properties->toArray());
}
}