Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(db): insert meta service with single quotes (#6381)
Browse files Browse the repository at this point in the history
Resolve CP7M-106
Ref #6216
  • Loading branch information
vhr authored and kduret committed Jun 20, 2018
1 parent cf47566 commit 6d9b553
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function insertMetaService($ret = array())
? $rq .= "'" . htmlentities($ret["meta_name"], ENT_QUOTES, "UTF-8") . "', "
: $rq .= "NULL, ";
isset($ret["meta_display"]) && $ret["meta_display"] != null
? $rq .= "'" . $ret["meta_display"] . "', "
? $rq .= "'" . htmlentities($ret["meta_display"], ENT_QUOTES, "UTF-8") . "', "
: $rq .= "NULL, ";
isset($ret["check_period"]) && $ret["check_period"] != null
? $rq .= "'" . $ret["check_period"] . "', "
Expand Down

0 comments on commit 6d9b553

Please sign in to comment.