- Timestamp:
- 08/21/07 06:29:56
(1 year ago)
- Author:
- gnif
- Message:
Cleaned up the chk_password function's regular expression pattern.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r761 |
r763 |
|
| 10 | 10 | - GUI: |
|---|
| 11 | 11 | * Updated chk_pass function to allow non alphanumeric letters in passwords |
|---|
| | 12 | If strong passwords are turned on, passwords must contain |
|---|
| | 13 | - At least one number or non alpha char |
|---|
| | 14 | - At least one alpha char |
|---|
| 12 | 15 | * Added code to strip slashes if gpc_magic_quotes_runtime is on |
|---|
| 13 | 16 | * Removed escapeshellcmd from the add/edit email pages (why escape? its only going into a database, adodb will do this for us) |
|---|
| r761 |
r763 |
|
| 134 | 134 | |
|---|
| 135 | 135 | if ($cfg['PASSWD_STRONG']) |
|---|
| 136 | | return (bool)(preg_match("/[0-9!@#$%^&*()_+\-=\[\]\\\\;',./{}|:\"<>?`~]/", $password) AND preg_match("/[a-zA-Z]/", $password)); |
|---|
| | 136 | return (bool)(preg_match("/[^a-z\\s]/i", $password) && preg_match("/[a-z]/i", $password)); |
|---|
| 137 | 137 | else |
|---|
| 138 | 138 | return TRUE; |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>