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
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
Hide 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
...
@@ -584,9 +584,7 @@ class Request extends \yii\base\Request
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.'
);
}
}
if
(
$pathInfo
===
'/'
)
{
if
(
$pathInfo
[
0
]
===
'/'
)
{
$pathInfo
=
''
;
}
else
if
(
$pathInfo
[
0
]
===
'/'
)
{
$pathInfo
=
substr
(
$pathInfo
,
1
);
$pathInfo
=
substr
(
$pathInfo
,
1
);
}
}
...
...
framework/web/UrlManager.php
View file @
6e716513
...
@@ -214,7 +214,7 @@ class UrlManager extends Component
...
@@ -214,7 +214,7 @@ class UrlManager extends Component
}
}
}
}
return
[
$pathInfo
,
[]];
return
[
(
string
)
$pathInfo
,
[]];
}
else
{
}
else
{
Yii
::
trace
(
'Pretty URL not enabled. Using default URL parsing logic.'
,
__METHOD__
);
Yii
::
trace
(
'Pretty URL not enabled. Using default URL parsing logic.'
,
__METHOD__
);
$route
=
$request
->
get
(
$this
->
routeVar
);
$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