Skip to content

Commit

Permalink
fix github (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangguangwuwu committed Sep 17, 2022
1 parent d1f3e79 commit aba1f52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function add()
public function addPost()
{
if ($this->request->isPost()) {
$data = $this->request->param();
$data = $this->request->param('',null,'strip_tags');
$slidePostModel = new SlideModel();
$result = $this->validate($data, 'Slide');
if ($result !== true) {
Expand Down Expand Up @@ -133,7 +133,7 @@ public function edit()
public function editPost()
{
if ($this->request->isPost()) {
$data = $this->request->param();
$data = $this->request->param('',null,'strip_tags');
$result = $this->validate($data, 'Slide');
if ($result !== true) {
$this->error($result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function add()
public function addPost()
{
if ($this->request->isPost()) {
$data = $this->request->param();
$data = $this->request->param('',null,'strip_tags');
SlideItemModel::insert($data['post']);
$this->success(lang('ADD_SUCCESS'), url('SlideItem/index', ['slide_id' => $data['post']['slide_id']]));
}
Expand Down Expand Up @@ -142,7 +142,7 @@ public function edit()
public function editPost()
{
if ($this->request->isPost()) {
$data = $this->request->param();
$data = $this->request->param('',null,'strip_tags');

$data['post']['image'] = cmf_asset_relative_url($data['post']['image']);

Expand Down

0 comments on commit aba1f52

Please sign in to comment.