Zhimeng DedeCMS On site search , if the search term contains capital , will be filtered out, and when accessing tag tags containing uppercase letters, you will be prompted that the tag does not have bugs.

have access to strtolower() The function converts uppercase letters to lowercase letters.

Specific modification method:

1. Modify Tag capitalization filtering method

Open the tags.php File (to solve the problem of unrecognizable capitalization of tags), put the following line of code

$tag = trim($_SERVER['QUERY_STRING']);

change into

$tag = strtolower(trim($_SERVER['QUERY_STRING']));

2. Modify the capitalization filtering method for searching in the website

open /plus/search.php File (this is to modify the search problem), put the following line of code

$oldkeyword = $keyword = FilterSearch(stripslashes($keyword));

change into

$oldkeyword = $keyword = FilterSearch(stripslashes(strtolower($keyword)));

Post reply

Can't comment until