Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.1

Bug #2605 Does not filter the ']' character
Submitted: 2004-10-24 14:19 UTC
From: wormus Assigned: mj
Status: Closed Package: Text_Password
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2004-10-24 14:19 UTC] wormus
Description: ------------ When creating a password with arbitrary characters the [ character is not filtered out and causes an error if it used. Reproduce code: --------------- require_once "Text/Password.php"; $password =& new Text_Password; $my_pass = $password->create(7, 'unpronounceable', '1,3,a,Q,~,[,f'); Expected result: ---------------- a password containing the ] character Actual result: -------------- Warning: Compilation failed: missing terminating ] for character class at offset 13 in C:\php\pear\Text\Password.php on line 507

Comments

 [2004-10-31 22:37 UTC] mj
This bug has been fixed by a recent change in the package which removed the usage of the preg_* functions.