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
f9fba181
Commit
f9fba181
authored
Oct 29, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #5806: Allow `Html::encode()` to be used when the application is not started
parent
74666f74
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
BaseHtml.php
framework/helpers/BaseHtml.php
+1
-1
No files found.
framework/CHANGELOG.md
View file @
f9fba181
...
@@ -25,6 +25,7 @@ Yii Framework 2 Change Log
...
@@ -25,6 +25,7 @@ Yii Framework 2 Change Log
-
Enh #5613: Added
`--overwrite`
option to Gii console command to support overwriting all files (motin, qiangxue)
-
Enh #5613: Added
`--overwrite`
option to Gii console command to support overwriting all files (motin, qiangxue)
-
Enh #5646: Call
`yii\base\ErrorHandler::unregister()`
instead of
`restore_*_handlers`
directly (aivus)
-
Enh #5646: Call
`yii\base\ErrorHandler::unregister()`
instead of
`restore_*_handlers`
directly (aivus)
-
Enh #5735: Added
`yii\bootstrap\Tabs::renderTabContent`
to support manually rendering tab contents (RomeroMsk)
-
Enh #5735: Added
`yii\bootstrap\Tabs::renderTabContent`
to support manually rendering tab contents (RomeroMsk)
-
Enh #5806: Allow
`Html::encode()`
to be used when the application is not started (qiangxue)
-
Enh:
`Console::confirm()`
now uses
`Console::stdout()`
instead of
`echo`
to be consistent with all other functions (cebe)
-
Enh:
`Console::confirm()`
now uses
`Console::stdout()`
instead of
`echo`
to be consistent with all other functions (cebe)
-
Chg #3630:
`yii\db\Command::queryInternal()`
is now protected (samdark)
-
Chg #3630:
`yii\db\Command::queryInternal()`
is now protected (samdark)
-
Chg #5508: Dropped the support for the
`--append`
option for the
`fixture`
command (qiangxue)
-
Chg #5508: Dropped the support for the
`--append`
option for the
`fixture`
command (qiangxue)
...
...
framework/helpers/BaseHtml.php
View file @
f9fba181
...
@@ -93,7 +93,7 @@ class BaseHtml
...
@@ -93,7 +93,7 @@ class BaseHtml
*/
*/
public
static
function
encode
(
$content
,
$doubleEncode
=
true
)
public
static
function
encode
(
$content
,
$doubleEncode
=
true
)
{
{
return
htmlspecialchars
(
$content
,
ENT_QUOTES
|
ENT_SUBSTITUTE
,
Yii
::
$app
->
charset
,
$doubleEncode
);
return
htmlspecialchars
(
$content
,
ENT_QUOTES
|
ENT_SUBSTITUTE
,
Yii
::
$app
?
Yii
::
$app
->
charset
:
'UTF-8'
,
$doubleEncode
);
}
}
/**
/**
...
...
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