Bug Report #44

Validation > alpha_numeric() allows dashes

Added by Geert De Deckere over 7 years ago. Updated over 7 years ago.

Status:ClosedStart date:
Priority:HighDue date:
Assignee:-% Done:

0%

Category:-
Target version:1.0
Resolution:fixed Points:

Description

This function should return FALSE if the form element contains anything other than alpha-numeric characters. When the string contains dashes this function returns TRUE, though.

Please use PHP’s ctype_alnum() function when fixing this. That function is five times faster than preg_match() in this case.

History

#1 Updated by Geert De Deckere over 7 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Also available in: Atom PDF