Changeset 763

Show
Ignore:
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
  • branches/ssl-addon/trunk/CHANGELOG

    r761 r763  
    1010    - GUI: 
    1111        * 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 
    1215        * Added code to strip slashes if gpc_magic_quotes_runtime is on 
    1316        * Removed escapeshellcmd from the add/edit email pages (why escape? its only going into a database, adodb will do this for us)   
  • branches/ssl-addon/trunk/gui/include/input-checks.php

    r761 r763  
    134134 
    135135    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)); 
    137137    else 
    138138        return TRUE;