Hey James. I had the problem with alphanumeric never validated on a
production server. I found out that cake's alphaNumeric validation
uses the /u regex parameter which has a bug in PHP 5.1.6:
http://bugs.php.net/bug.php?id=42298

So I wrote my own alphaNumeric:
app_model.php:

  /
************************************************************************
   * validate alphanumeric for php compatibility sanity
   */
  function myAlphaNumeric($data) {
    $val = array_shift(array_values($data));
    if (ereg('[^A-Za-z0-9]', $val)) {
      return false;
    }
    else {
      return true;
    }
  }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to