Forums / Cotonti / Bugs / Bug in Tags

When entering uppercase tags the values get modified.

MIHDev
#1 2010-10-19 07:45
Hi,

I registered for trac but I cannot open new tickets as I do not have permission.

Fault Report
Area: Pages
Field: Tags
Severity: Very Minor
Fault Description: When entering tags for a page, if you use an upper case combination EG: AAA, when parsed it reads Aaa and then when clicking Edit again it is aaa.
Resolution: In VB this would be a UCASE\LCASE problem, not sure of the PHP function but is probably similar.

Regards

CCCDev
[b]Know the question and you will be far more likely to get an answer.[/b]
Trustmaster
#2 2010-10-19 14:34
Tags are converted to lower case for a specific reason: to avoid duplicates. Otherwise OpenSUSE, OpenSuse, OpenSuSE, openSuse and opensuse would be all different tags and tag different contents. The drawback is that it is displayed as Opensuse in the tag list, but it is easier to live with rather than loose tagging.
May the Source be with you!
GHengeveld
#3 2010-10-19 20:14
Tags are converted to lowercase before storage. On page they are parsed with ucfirst() meaning they are displayed with the first letter converted to uppercase. That's why 'AAA' becomes 'Aaa' but is stored as 'aaa'.

Personally I wouldn't have chosen to use ucfirst(), but it's not so important.
MIHDev
#4 2010-10-19 21:48
Thanks for the quick responses guys, I will update my support ticket at our end.
[b]Know the question and you will be far more likely to get an answer.[/b]