找回密码
 快速注册
搜索
查看: 77|回复: 2

搜索+<>"'()\|字符

[复制链接]

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2022-8-26 01:54 |阅读模式
建议去除/source/module/search/search_forum.php第93行
  1. $keyword = $keyword != '' ? str_replace('+', ' ', $keyword) : '';
复制代码

应该就可以搜索加号了{:smile:}

点评

括号呢?  发表于 2022-8-26 01:57

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-8-26 02:14
@kuing
括号呢?  发表于 2022-8-25 18:57

/source/class/discuz/discuz_application.php
第364行
  1. static $check = array('"', '>', '<', '\'', '(', ')', 'CONTENT-TRANSFER-ENCODING');
复制代码

第384~391行
  1.                 if(!empty($temp)) {
  2.                         $temp = strtoupper(urldecode(urldecode($temp)));
  3.                         foreach ($check as $str) {
  4.                                 if(strpos($temp, $str) !== false) {
  5.                                         system_error('request_tainting');
  6.                                 }
  7.                         }
  8.                 }
复制代码


dounaite.com/article/62e078e7f4ab41be4894901a.html
baisheng999.com/festudy/2415.html

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 15:39

Powered by Discuz!

× 快速回复 返回顶部 返回列表