Module will generate an invalid class if title starts with a numeric digit

Created on 30 July 2012, almost 13 years ago
Updated 1 June 2024, about 1 year ago

The patch is attached. I just added a quick if statement checking the first char in the title.

if(is_numeric(substr($text, 0, 1)))
   $text = "_".$text;
πŸ› Bug report
Status

Postponed: needs info

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States johnny5th

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • πŸ‡¬πŸ‡§United Kingdom aaron.ferris

    Appreciate this is incredibly old, but I cannot reproduce this issue.

    1. Latest version of this module
    2. Drupal 7 - fresh
    3. Enable this module
    4. Have a menu item that starts with a number

    Expected
    No broken classes

    Actual
    No broken classes.

    If by the off chance you see this, can you please provide full reproduction steps?

  • Status changed to Postponed: needs info about 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom aaron.ferris
Production build 0.71.5 2024