Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003463 [Quercus] minor always 04-28-09 06:48 04-28-09 06:48
Reporter pablorg View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 3.2.1
  Product Build
Summary 0003463: regex error
Description this code works in PHP but not Quercus:

function isValidEmail(&$value){
    $atom = '[-a-z0-9!#$%&\'*+/=?^_`{|}~]'; // allowed characters for part before "at" character
    $domain = '([a-z]([-a-z0-9]*[a-z0-9]+)?)'; // allowed characters for part after "at" character
    $email = $atom . '+' . // One or more atom characters.
        '(\.' . $atom . '+)*'. // Followed by zero or more dot separated sets of one or more atom characters.
        '@'. // Followed by an "at" character.
        '(' . $domain . '{1,63}\.)+'. // Followed by one or max 63 domain characters (dot separated).
        $domain . '{2,63}'; // or max 63 domain characters.
    $pattern = '^('.$email.'[,]{0,1}){1,5}$';
    return ereg($pattern,$value);
}
Steps To Reproduce
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
04-28-09 06:48 pablorg New Issue


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
26 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker