广告管理 替换url参数中的//为https://

editor切换预览视图时自动将//改为/,认为单独存在的//不合法
hotfix/远程访问多媒体中心
lyt 8 years ago
parent 1e0fc4ad9f
commit 456aa722b8

@ -6,7 +6,7 @@ if (!defined('BASEPATH'))
class Index extends CI_Controller
{
public function __construct()
public function __construct()
{
parent::__construct();
$this->permission->is_admin();
@ -55,6 +55,7 @@ class Index extends CI_Controller
$data['advertise']=$this->advertise_model->get_advertise_treeid($data['ad_is_id']);
$data['webpage_list']=$this->advertise_model->get_advertise_page($data['ad_is_id']);
$data['click_rate']=$this->advertise_model->get_click_rate($data['advertise']->ad_id);
$data['advertise']->ad_content = str_replace("url=//","url=https://",$data['advertise']->ad_content);
$this->load->view('bootstrap3/header', $data);
$this->load->view('advertise');
$this->load->view('bootstrap3/footer');
@ -167,4 +168,4 @@ class Index extends CI_Controller
echo $result;
}
}
}

Loading…
Cancel
Save