Home > Article > CMS Tutorial > What should I do if the dedecms5.7 tag tag does not support uppercase letters?
dedecms5.7 What should I do if the tag does not support uppercase letters?
dedecms5.7 tag tag does not support uppercase letters solution
I accidentally discovered that some tag tag clicks in my dedecms blog were invalid, and I initially thought it was I made a mistake in the tag, and I tried to correct it for a long time but didn’t figure it out. Later I accidentally discovered that it was because dedecms5.7 version tag tag did not support uppercase letters;
Here is the solution:
Open the website root Directory’s tags.php file
Replace the following line of code
$tag = trim($_SERVER['QUERY_STRING']);
with
$tag = strtolower(trim($_SERVER['QUERY_STRING']));
Recommended learning: dedecms tutorial
Comments :PHP strtolower() function
Definition and usage
strtolower() function converts a string to lowercase.
Syntax
strtolower(string)
Parameters
string Required. Specifies the string to be converted.
Example
<?php echo strtolower("Hello WORLD!"); ?>
Output:
hello world!
The above is the detailed content of What should I do if the dedecms5.7 tag tag does not support uppercase letters?. For more information, please follow other related articles on the PHP Chinese website!