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.
"Admin title" and "Admin desc" options in the "Pane settings" section of the views admin interface are displayed trimmed to 16 chars using substr().
If a user enters a title or description containing non-english characters (e.g. Seznam smučišč v Sloveniji) upon clicking "Apply" the string gets malformed and the whole views admin interface disappears. A page refresh is needed to bring the interface back.
Functions drupal_strlen() and drupal_substr() should be used instead of strlen() and substr() for proper UTF string handling.
Comment | File | Size | Author |
---|---|---|---|
#1 | use_drupal_strlen_for_label_trimming-1406796-1.patch | 2.31 KB | paranojik |
Comments
Comment #1
paranojik CreditAttribution: paranojik commented...and here's the patch.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedMarking 'needs review' -- I missed this in my last patch review spree.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted. Thanks!