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
462c5003
Commit
462c5003
authored
Jan 17, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1930: Fixed domain based URL matching for website root
parent
0c226154
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
Request.php
framework/web/Request.php
+1
-1
UrlManager.php
framework/web/UrlManager.php
+1
-1
UrlRule.php
framework/web/UrlRule.php
+1
-1
No files found.
framework/CHANGELOG.md
View file @
462c5003
...
@@ -27,6 +27,7 @@ Yii Framework 2 Change Log
...
@@ -27,6 +27,7 @@ Yii Framework 2 Change Log
-
Bug #1827: Debugger toolbar is loaded twice if an action is calling
`run()`
to execute another action (qiangxue)
-
Bug #1827: Debugger toolbar is loaded twice if an action is calling
`run()`
to execute another action (qiangxue)
-
Bug #1869: Fixed tables clearing.
`TRUNCATE`
changed to
`DELETE`
to avoid postgresql tables checks (and truncating all tables) (Ragazzo)
-
Bug #1869: Fixed tables clearing.
`TRUNCATE`
changed to
`DELETE`
to avoid postgresql tables checks (and truncating all tables) (Ragazzo)
-
Bug #1870: Validation errors weren't properly translated when using clientside validation (samdark)
-
Bug #1870: Validation errors weren't properly translated when using clientside validation (samdark)
-
Bug #1930: Fixed domain based URL matching for website root (samdark)
-
Bug #1937: Fixed wrong behavior or advanced app's
`init --env`
when called without parameter actually specified (samdark)
-
Bug #1937: Fixed wrong behavior or advanced app's
`init --env`
when called without parameter actually specified (samdark)
-
Bug #1959:
`Html::activeCheckbox`
wasn't respecting custom values for checked/unchecked state (klevron, samdark)
-
Bug #1959:
`Html::activeCheckbox`
wasn't respecting custom values for checked/unchecked state (klevron, samdark)
-
Bug #1965:
`Controller::findLayoutFile()`
returns incorrect file path when layout name starts with a slash (qiangxue)
-
Bug #1965:
`Controller::findLayoutFile()`
returns incorrect file path when layout name starts with a slash (qiangxue)
...
...
framework/web/Request.php
View file @
462c5003
...
@@ -588,7 +588,7 @@ class Request extends \yii\base\Request
...
@@ -588,7 +588,7 @@ class Request extends \yii\base\Request
$pathInfo
=
substr
(
$pathInfo
,
1
);
$pathInfo
=
substr
(
$pathInfo
,
1
);
}
}
return
$pathInfo
;
return
(
string
)
$pathInfo
;
}
}
/**
/**
...
...
framework/web/UrlManager.php
View file @
462c5003
...
@@ -214,7 +214,7 @@ class UrlManager extends Component
...
@@ -214,7 +214,7 @@ class UrlManager extends Component
}
}
}
}
return
[
(
string
)
$pathInfo
,
[]];
return
[
$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
);
...
...
framework/web/UrlRule.php
View file @
462c5003
...
@@ -217,7 +217,7 @@ class UrlRule extends Object
...
@@ -217,7 +217,7 @@ class UrlRule extends Object
}
}
if
(
$this
->
host
!==
null
)
{
if
(
$this
->
host
!==
null
)
{
$pathInfo
=
strtolower
(
$request
->
getHostInfo
())
.
'/'
.
$pathInfo
;
$pathInfo
=
strtolower
(
$request
->
getHostInfo
())
.
(
$pathInfo
===
''
?
''
:
'/'
.
$pathInfo
)
;
}
}
if
(
!
preg_match
(
$this
->
pattern
,
$pathInfo
,
$matches
))
{
if
(
!
preg_match
(
$this
->
pattern
,
$pathInfo
,
$matches
))
{
...
...
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