Because strstr() is faster than ereg(), it should be used for some validity checking in user.module.

CommentFileSizeAuthor
#2 user.module_66.patch1.43 KBmeba
user.module_65.patch1.41 KBmeba
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

m3avrck’s picture

Status: Active » Needs work

strpos() would be *even* faster in those cases.

meba’s picture

Title: strstr() is faster than ereg() in user.module » strpos() is faster than ereg() in user.module
FileSize
1.43 KB

You are right, rerolling.

m3avrck’s picture

Status: Needs work » Reviewed & tested by the community

Looks good now!

Steven’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)