Skip to content

Commit

Permalink
安全更新
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Jan 14, 2017
1 parent 3b7080f commit 49fe140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Application/Home/Controller/ItemController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function add(){
$item_type = I("item_type");

if ($item_domain) {
$item = D("Item")->where("item_domain = '$item_domain' and item_id !='$item_id' ")->find();
$item = D("Item")->where("item_domain = '%s' and item_id !='%s' ",array($item_domain,$item_id))->find();
if ($item) {
//个性域名已经存在
$this->message(L('domain_already_exists'));
Expand Down

0 comments on commit 49fe140

Please sign in to comment.