[sork] If you have a strange error when you change the password...

Eric Rostetter eric.rostetter at physics.utexas.edu
Fri Apr 4 13:42:48 PST 2003


Quoting Paolo Cavicchini <p.cavicchini at ifinet.it>:

> "Warning: Compilation failed: missing terminating ] for character class at
> offset 10 in /var/www/html/mail/horde/passwd/main.php on line 105"

I believe this is a known problem already fixed in CVS.  Your fix looks
correct.

> 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++;
>             }
>

--
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the sork mailing list