97久久国产亚洲精品超碰热,成人又色又爽的免费网站,色偷偷女人的天堂a,男女高潮喷水在线观看,国内精品一线二线三线区别在哪里

Discuz! 官方交流社區(qū)

標(biāo)題: 允許發(fā)站外URL的大BUG,導(dǎo)致廣告滿天飛 [打印本頁]

作者: xxwl2008    時(shí)間: 2023-6-15 03:15
標(biāo)題: 允許發(fā)站外URL的大BUG,導(dǎo)致廣告滿天飛
新注冊(cè)的用戶組的“允許發(fā)站外URL”已經(jīng)禁止,發(fā)現(xiàn)還是被發(fā)了站外鏈接的廣告,發(fā)現(xiàn)是專用的這個(gè)代碼
  1. [url][img]https://XXX.com/g[/img]文字[/url]
復(fù)制代碼

我測(cè)試了果然能發(fā)出去,這個(gè)選項(xiàng)只能禁止 https://XXX.com/這樣的外聯(lián)
設(shè)置論壇板塊禁止發(fā)表[img]代碼也不現(xiàn)實(shí)。畢竟版主有時(shí)候要發(fā)圖片

請(qǐng)求增加用戶組禁止發(fā)表[img]代碼的選項(xiàng)
作者: xxwl2008    時(shí)間: 2023-6-15 15:40
(, 下載次數(shù): 16)

作者: 專家    時(shí)間: 2023-6-15 16:57
img代碼只影響外鏈圖片,將圖片直接通過編輯器上傳插入產(chǎn)生的不是img代碼。
作者: 龍二哥    時(shí)間: 2023-6-19 10:43
測(cè)試
試試看
作者: 1314學(xué)習(xí)網(wǎng)    時(shí)間: 2023-7-2 11:15
修復(fù)鏈接越權(quán)解析的問題
打開 upload/source/class/helper/helper_form.php
找到
  1.                 if($_G['group']['allowposturl'] == 0 || $_G['group']['allowposturl'] == 2) {
  2.                         $urllist = self::get_url_list($message);
  3.                         if(is_array($urllist[1])) foreach($urllist[1] as $key => $val) {
  4.                                 if(!$val = trim($val)) continue;
  5.                                 if(!iswhitelist($val)) {
  6.                                         if($_G['group']['allowposturl'] == 0) {
  7.                                                 if($return) {
  8.                                                         return array('message' => 'post_url_nopermission');
  9.                                                 }
  10.                                                 showmessage('post_url_nopermission');
  11.                                         } elseif($_G['group']['allowposturl'] == 2) {
  12.                                                 $message = str_replace('[url]'.$urllist[0][$key].'[/url]', $urllist[0][$key], $message);
  13.                                                 $message = preg_replace(
  14.                                                         array(
  15.                                                                 "@\[url=[^\]]*?".preg_quote($urllist[0][$key],'@')."[^\]]*?\](.*?)\[/url\]@is",
  16.                                                                 "@href=('|")".preg_quote($urllist[0][$key],'@')."\\1@is",
  17.                                                                 "@\[url\]([^\]]*?".preg_quote($urllist[0][$key],'@')."[^\]]*?)\[/url\]@is",
  18.                                                         ),
  19.                                                         array(
  20.                                                                 '\\1',
  21.                                                                 '',
  22.                                                                 '\\1',
  23.                                                         ),
  24.                                                         $message);
  25.                                         }
  26.                                 }
  27.                         }
  28.                 }
復(fù)制代碼
修改為
  1.                 if($_G['group']['allowposturl'] == 0) {
  2.                         $urllist = self::get_url_list($message);
  3.                         if(is_array($urllist[1])) {
  4.                                 foreach($urllist[1] as $key => $val) {
  5.                                         if(!$val = trim($val)) continue;
  6.                                         if(!iswhitelist($val)) {
  7.                                                 if($return) {
  8.                                                         return array('message' => 'post_url_nopermission');
  9.                                                 }
  10.                                                 showmessage('post_url_nopermission');
  11.                                         }
  12.                                 }
  13.                         }
  14.                 } elseif($_G['group']['allowposturl'] == 2) {
  15.                         $message = preg_replace("/\[url(=((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|thunder|qqdl|synacast){1}:\/\/|www\.|mailto:|tel:|magnet:)?([^\r\n\["']+?))?\](.+?)\[\/url\]/is", '\\5', $message);
  16.                 }
復(fù)制代碼

作者: babyfacer    時(shí)間: 2023-8-3 15:07
1314學(xué)習(xí)網(wǎng) 發(fā)表于 2023-7-2 11:15
修復(fù)鏈接越權(quán)解析的問題
打開 upload/source/class/helper/helper_form.php
找到修改為 ...

【設(shè)置:站外鏈接允許發(fā)布但不能解析】20230520本站鏈接正常解析,20230726,不能解析,即便是將本站網(wǎng)址添加到訪問控制-允許發(fā)表的域名列表




歡迎光臨 Discuz! 官方交流社區(qū) (http://r615.cn/) Powered by Discuz! X5.0