[sork] If you have a strange error when you change the password...
    Paolo Cavicchini 
    p.cavicchini at ifinet.it
       
    Fri Apr  4 12:16:55 PST 2003
    
    
  
Hello,
I installed sork and it works almost fine.
Initially, hen I was trying to change my password, the password was regulary
changed, but I saw an error in the top side of the window:
"Warning: Compilation failed: missing terminating ] for character class at
offset 10 in /var/www/html/mail/horde/passwd/main.php on line 105"
If I was trying to change again my password, the password was again regulary
changed and I didn't see the error.
So, I edited /var/www/html/mail/horde/passwd/main.php
--- BEFORE THE line 105 CHANGE ---
            if (preg_match('/[[:lower:]]/', $char)) {
                $lower++; $alpha++; $alnum++;
            } elseif (preg_match('/[[:upper:]/', $char)) {   # <---- line
105
                $upper++; $alpha++; $alnum++;
            } elseif (preg_match('/[[:digit:]]/', $char)) {
                $num++; $alnum++;
            } elseif ($char === ' ') {
                $space++;
            }
--- AFTER THE line 105 CHANGE ---
            if (preg_match('/[[:lower:]]/', $char)) {
                $lower++; $alpha++; $alnum++;
            } elseif (preg_match('/[[:upper:]]/', $char)) {   # <---- line
105
                $upper++; $alpha++; $alnum++;
            } elseif (preg_match('/[[:digit:]]/', $char)) {
                $num++; $alnum++;
            } elseif ($char === ' ') {
                $space++;
            }
Now it works fine without any error.
I hope this could help someone.
Bye
Paolo
---------------------------------------------------------------------
Paolo Cavicchini	      Phone +39-45-595699
IFInet s.r.l.		Fax   +39-45-8009400
Via XX Settembre 14	http://www.ifinet.it
37129 Verona (Italy)	e-mail: p.cavicchini at ifinet.it
PGP Fingerprint: 0C32 1B8B A1E1 E62C 32DB  B396 C818 078C F674 709D
---------------------------------------------------------------------
 
    
    
More information about the sork
mailing list