In the 4.6.x to 4.7.x set of rules, there is one which checks for substr() and strlen() usage and gives a warning saying that drupal_substr() and drupal_strlen() should be used where possible as these are UTF-8 safe. We should add this rule to the normal coding standards set of rules.

Cheers,
Stella

Comments

stella’s picture

Status: Active » Fixed

Committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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