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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
6e716513
Commit
6e716513
authored
Jan 17, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1991: regression in index.php handling
parent
b312b853
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
Request.php
framework/web/Request.php
+1
-3
UrlManager.php
framework/web/UrlManager.php
+1
-1
No files found.
framework/web/Request.php
View file @
6e716513
...
...
@@ -584,9 +584,7 @@ class Request extends \yii\base\Request
throw
new
InvalidConfigException
(
'Unable to determine the path info of the current request.'
);
}
if
(
$pathInfo
===
'/'
)
{
$pathInfo
=
''
;
}
else
if
(
$pathInfo
[
0
]
===
'/'
)
{
if
(
$pathInfo
[
0
]
===
'/'
)
{
$pathInfo
=
substr
(
$pathInfo
,
1
);
}
...
...
framework/web/UrlManager.php
View file @
6e716513
...
...
@@ -214,7 +214,7 @@ class UrlManager extends Component
}
}
return
[
$pathInfo
,
[]];
return
[
(
string
)
$pathInfo
,
[]];
}
else
{
Yii
::
trace
(
'Pretty URL not enabled. Using default URL parsing logic.'
,
__METHOD__
);
$route
=
$request
->
get
(
$this
->
routeVar
);
...
...
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