zen_id_safe fails when first character is extended latin
JohnAlbin - April 30, 2008 - 19:52
| Project: | Zen |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | JohnAlbin |
| Status: | closed |
Description
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.
| Attachment | Size |
|---|---|
| id-safe.patch | 1.52 KB |

#1
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".
#2
Committed to HEAD and DRUPAL-5
#3
Automatically closed -- issue fixed for two weeks with no activity.