Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
f554d46a
Commit
f554d46a
authored
Dec 28, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes.
parent
f18e530f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Manager.php
framework/yii/rbac/Manager.php
+1
-1
Request.php
framework/yii/web/Request.php
+1
-1
No files found.
framework/yii/rbac/Manager.php
View file @
f554d46a
...
@@ -21,7 +21,7 @@ use yii\base\InvalidParamException;
...
@@ -21,7 +21,7 @@ use yii\base\InvalidParamException;
* Access Control (RBAC).
* Access Control (RBAC).
*
*
* The main idea is that permissions are organized as a hierarchy of
* The main idea is that permissions are organized as a hierarchy of
* [[Item]] authorization items. Items on higer level inherit the permissions
* [[Item]] authorization items. Items on hig
h
er level inherit the permissions
* represented by items on lower level. And roles are simply top-level authorization items
* represented by items on lower level. And roles are simply top-level authorization items
* that may be assigned to individual users. A user is said to have a permission
* that may be assigned to individual users. A user is said to have a permission
* to do something if the corresponding authorization item is inherited by one of his roles.
* to do something if the corresponding authorization item is inherited by one of his roles.
...
...
framework/yii/web/Request.php
View file @
f554d46a
...
@@ -577,7 +577,7 @@ class Request extends \yii\base\Request
...
@@ -577,7 +577,7 @@ class Request extends \yii\base\Request
$pathInfo
=
substr
(
$pathInfo
,
strlen
(
$scriptUrl
));
$pathInfo
=
substr
(
$pathInfo
,
strlen
(
$scriptUrl
));
}
elseif
(
$baseUrl
===
''
||
strpos
(
$pathInfo
,
$baseUrl
)
===
0
)
{
}
elseif
(
$baseUrl
===
''
||
strpos
(
$pathInfo
,
$baseUrl
)
===
0
)
{
$pathInfo
=
substr
(
$pathInfo
,
strlen
(
$baseUrl
));
$pathInfo
=
substr
(
$pathInfo
,
strlen
(
$baseUrl
));
}
elseif
(
strpos
(
$_SERVER
[
'PHP_SELF'
],
$scriptUrl
)
===
0
)
{
}
elseif
(
isset
(
$_SERVER
[
'PHP_SELF'
])
&&
strpos
(
$_SERVER
[
'PHP_SELF'
],
$scriptUrl
)
===
0
)
{
$pathInfo
=
substr
(
$_SERVER
[
'PHP_SELF'
],
strlen
(
$scriptUrl
));
$pathInfo
=
substr
(
$_SERVER
[
'PHP_SELF'
],
strlen
(
$scriptUrl
));
}
else
{
}
else
{
throw
new
InvalidConfigException
(
'Unable to determine the path info of the current request.'
);
throw
new
InvalidConfigException
(
'Unable to determine the path info of the current request.'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment