Closed (fixed)
Project:
Lost & found issues
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2007 at 16:04 UTC
Updated:
24 Jul 2007 at 21:38 UTC
Jump to comment: Most recent
When adding in categories to the contact list, most characters can be used without a problem. However, I have noticed that three characters in particular do cause a problem if they are present in a category name, and that category link is clicked on:
Out of curiosity, I added one category which was a string of every ASCII character available in the "Character Map" in Windows (broken up into 20 characters per line here - the soft hyphen isn't visible, but it's there):
!"#$%&'()*+,-./01234
56789:;<=>?@ABCDEFGH
IJKLMNOPQRSTUVWXYZ[\
]^_`abcdefghijklmnop
qrstuvwxyz{|}~€‚ƒ„…†
‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œž
Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²
³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆ
ÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚ
ÛÜÝÞßàáâãäåæçèéêëìíî
ïðñòóôõö÷øùúûüýþÿ
When the three characters mentioned above were removed, the string worked just fine. Could there be an issue with how they are encoded that is causing issues with contact category links containing those characters?
Comments
Comment #1
behindthepage commentedThis is an issue for the core contact module and if you post it under drupal someone will give you an intelligent answer.
Comment #2
Wolfey commentedAll right, then - thank you for mentioning that. Before I post it there, though, I noticed one of the things they mention on the "Submit Issue" page is to list how to reproduce the issue...and I can't figure out a way (short of already having your module installed) to reproduce this issue just for the core content module.
Comment #3
behindthepage commentedSo are you saying it doesn't happen with the core contact module but it does happen with mine?
Comment #4
behindthepage commentedOk I finally get it. The problem is with the links on the "contact/list" page. Of course the simple solution is don't use these characters. However it may be a weakness in Drupals code that you have spotted. BTW Good testing and definition of the problem.
There are a couple of places that this could be happening or fixed.
The question has to be asked whether anyone would want to use those characters and whether it is a good idea to use them. Personally I don't know and I think this will need to be answered by some of the Drupal Gurus.
Comment #5
Wolfey commentedYes - it happens with your module, but not with the core contact module Could this be a case where the problem can only be (easily) exposed with the addition of another module? If so, that would explain why I thought it was your module that had the issue at first. I wonder if other modules that add features to contact.module are also affected by this?
As for the problem testing and definition, thanks for the compliment :)
As for the use of those three characters in category names...In my opinion, I can't see a justifiable use for backslashes or plus signs in a category, unless they were used as part of a ranking system of some sort. Slashes, however, would definitely be useful, mainly where a person/position carries multiple titles that are all part of the same job and can't be listed separately.
I'll repost this as an issue with Drupal regarding the contact.module component now - thank you for your help.
Comment #6
behindthepage commented