織夢(mèng)采集“手工指定網(wǎng)址”是https鏈接時(shí)不起作用解決辦法
dedecms:5.7SP2采集規(guī)則中“手工指定網(wǎng)址”是https鏈接時(shí)不起作用解決辦法
織夢(mèng)CMS在V5.7.71 正式版20180104中,更新了include/dedehttpdown.class.php,dedeHttpDown增加curl的支持,支持https內(nèi)容獲取,支持請(qǐng)求設(shè)置cookies,但在使用中發(fā)現(xiàn)采集規(guī)則中“手工指定網(wǎng)址”是https鏈接時(shí)卻還是不起作用,錯(cuò)新站長(zhǎng)網(wǎng)小編經(jīng)過折騰一翻后,終于解決了。
解決辦法:
修改include/dedecollection.func.php 517行
將if(preg_match("/^http://///i", $handurl))改成if(!preg_match("//(/*/)/i", $handurl) && !preg_match("//(/#/)/i", $handurl))即可。
新聞熱點(diǎn)
疑難解答
圖片精選