Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
backend
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
亲子游项目
backend
Commits
ec87e7f1
Commit
ec87e7f1
authored
Dec 14, 2018
by
LiuJunYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
THINKPHP安全漏洞
parent
26d04e02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
application/admin/view/region/index.html
+1
-1
thinkphp/library/think/App.php
+3
-0
No files found.
application/admin/view/region/index.html
View file @
ec87e7f1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<link
rel=
"stylesheet"
href=
"https://cdn.bootcss.com/jquery-treegrid/0.2.0/css/jquery.treegrid.min.css"
>
<link
rel=
"stylesheet"
href=
"https://cdn.bootcss.com/jquery-treegrid/0.2.0/css/jquery.treegrid.min.css"
>
<section
class=
"wrapper"
>
<section
class=
"wrapper"
>
<h3><i
class=
"fa fa-angle-right"
></i>
城市
管理
</h3>
<h3><i
class=
"fa fa-angle-right"
></i>
区域
管理
</h3>
<!-- 分割线 -->
<!-- 分割线 -->
<hr>
<hr>
...
...
thinkphp/library/think/App.php
View file @
ec87e7f1
...
@@ -552,6 +552,9 @@ class App
...
@@ -552,6 +552,9 @@ class App
// 获取控制器名
// 获取控制器名
$controller
=
strip_tags
(
$result
[
1
]
?:
$config
[
'default_controller'
]);
$controller
=
strip_tags
(
$result
[
1
]
?:
$config
[
'default_controller'
]);
$controller
=
$convert
?
strtolower
(
$controller
)
:
$controller
;
$controller
=
$convert
?
strtolower
(
$controller
)
:
$controller
;
if
(
!
preg_match
(
'/^[A-Za-z](\w|\.)*$/'
,
$controller
))
{
throw
new
HttpException
(
404
,
'controller not exists:'
.
$controller
);
}
// 获取操作名
// 获取操作名
$actionName
=
strip_tags
(
$result
[
2
]
?:
$config
[
'default_action'
]);
$actionName
=
strip_tags
(
$result
[
2
]
?:
$config
[
'default_action'
]);
...
...
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