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)));
Statement: All articles on this site, unless otherwise specified or marked, are originally published on this site. No individual or organization is allowed to copy, embezzle, collect and publish the content of this website to any website, book and other media platforms without the consent of this website. If the content of this website infringes upon the legitimate rights and interests of the original author, please contact us for handling.