Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a new "Content types" and called it "Member's Websites" (with the apostrophe).
It displays fine in the "Content Types" list, but under the "Create Content" area (side menu and main menu list) it is displaying as "Member's Websites"
Same thing happens with a quote (") which adds: "
Interestingly the back tick (`) is fine...
Please advise on a patch.
Comment | File | Size | Author |
---|---|---|---|
#4 | menu_check_plain.patch | 1.06 KB | theborg |
Comments
Comment #1
neofactor CreditAttribution: neofactor commentedLooks like my post got displays wrong... I will re-dsiplay the output by breaking it up...
An apostrophe ' displays this: & #039; (without the space)
A quote " displays this: & quot;
Comment #2
David_Rothstein CreditAttribution: David_Rothstein commentedI can confirm this in the latest CVS version. I'm not sure if it qualifies as a bug, though, since when adding a new content type the page clearly states:
This name must begin with a capital letter and contain only letters, numbers, and spaces.
On the other hand, it's not so obvious to me why this restriction should exist on the "human-readable" version of the content type name... perhaps someone else knows a good reason for it, though?
Comment #3
David_Rothstein CreditAttribution: David_Rothstein commentedAlso, I did a quick check and it looks like this problem does not exist in Drupal 5, for what it's worth...
Comment #4
theborg CreditAttribution: theborg commentedThe content type title has already passed 'check_plain' security function thought the menu system and is called again before building the link.
This patch checks if check_plain has been called for an item.
Comment #5
theborg CreditAttribution: theborg commentedComment #6
chx CreditAttribution: chx commentedLooks quite good.
Comment #7
Gábor HojtsyGood, committed, thanks.
Comment #8
David_Rothstein CreditAttribution: David_Rothstein commentedSo maybe the warning on the add new content type page should be changed?
This name must begin with a capital letter and contain only letters, numbers, and spaces.
It seems like this isn't true. Is there any restriction on the human-readable name of the content type at all?
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.