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
cddf691c
Commit
cddf691c
authored
Nov 05, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made gii getManifest more robust against corrupt index file
parent
2df21b35
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
CHANGELOG.md
extensions/debug/CHANGELOG.md
+1
-0
DefaultController.php
extensions/debug/controllers/DefaultController.php
+2
-2
No files found.
extensions/debug/CHANGELOG.md
View file @
cddf691c
...
...
@@ -7,6 +7,7 @@ Yii Framework 2 debug extension Change Log
-
Bug #5402: Debugger was not loading when there were closures in asset classes (samdark)
-
Bug #5745: Gii and debug modules may cause 404 exception when the route contains dashes (qiangxue)
-
Enh #5600: Allow configuring debug panels in
`yii\debug\Module::panels`
as panel class name strings (qiangxue)
-
Enh: Made
`DefaultController::getManifest()`
more robust against corrupt files (cebe)
2.0.0 October 12, 2014
...
...
extensions/debug/controllers/DefaultController.php
View file @
cddf691c
...
...
@@ -118,8 +118,8 @@ class DefaultController extends Controller
clearstatcache
();
}
$indexFile
=
$this
->
module
->
dataPath
.
'/index.data'
;
if
(
is_file
(
$indexFile
)
&&
is_readable
(
$indexFile
))
{
$this
->
_manifest
=
array_reverse
(
unserialize
(
file_get_contents
(
$indexFile
)
),
true
);
if
(
is_file
(
$indexFile
)
&&
is_readable
(
$indexFile
)
&&
(
$content
=
file_get_contents
(
$indexFile
))
!==
false
)
{
$this
->
_manifest
=
array_reverse
(
unserialize
(
$content
),
true
);
}
else
{
$this
->
_manifest
=
[];
}
...
...
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