For example, passing zen_id_safe('Übercart') would return "-bercart" which is not a valid ID in HTML. Valid IDs must start with A-Za-z.

CommentFileSizeAuthor
#1 id-safe.patch1.55 KBjohnalbin
id-safe.patch1.52 KBjohnalbin

Comments

johnalbin’s picture

StatusFileSize
new1.55 KB

I realized the original reason it prepended "n" to IDs was that zen_id_safe only did that when the first char was numeric.

Prepending "n" to "-bercart" doesn't make much sense. Changing it to prepend "id".

johnalbin’s picture

Status: Needs review » Fixed

Committed to HEAD and DRUPAL-5

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.