[sork] Fwd: [horde] Patch for a bug in 'passwd'

Chuck Hagenbuch chuck at horde.org
Wed May 7 13:45:48 PDT 2003



----- Forwarded message from lrivera at racsa.co.cr -----
    Date: 07 May 2003 10:48:30 -0600
    From: Diego Rivera <lrivera at racsa.co.cr>
Reply-To: Diego Rivera <lrivera at racsa.co.cr>
 Subject: [horde] Patch for a bug in 'passwd'
      To: horde at lists.horde.org

Passwd has a missing bracket that causes errors when a password change
is requested and verification of its strength is used. Here's a patch
for that.

-- BEGIN PATCH INLINED --
diff -ruP horde-orig/passwd/main.php horde-new/passwd/main.php
--- horde-orig/passwd/main.php  2003-05-07 09:45:15.000000000 -0600
+++ horde-new/passwd/main.php   2003-05-07 10:02:58.000000000 -0600
@@ -102,7 +102,7 @@
         } else {
             if (preg_match('/[[:lower:]]/', $char)) {
                 $lower++; $alpha++; $alnum++;
-            } elseif (preg_match('/[[:upper:]/', $char)) {
+            } elseif (preg_match('/[[:upper:]]/', $char)) {
                 $upper++; $alpha++; $alnum++;
             } elseif (preg_match('/[[:digit:]]/', $char)) {
                 $num++; $alnum++;
--- END PATCH INLINED ---

--
===========================================================
* Diego Rivera                                            *
*                                                         *
* "The Disease: Windows, the cure: Linux"                 *
*                                                         *
* E-mail: lrivera<AT>racsa<DOT>co<DOT>cr                  *
* Replace: <AT>='@', <DOT>='.'                            *
*                                                         *
* GPG: BE59 5469 C696 C80D FF5C  5926 0B36 F8FF DA98 62AD *
* GPG Public Key avaliable at: http://pgp.mit.edu         *
===========================================================



--
Horde mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: horde-unsubscribe at lists.horde.org



----- End forwarded message -----


-chuck

--
Charles Hagenbuch, <chuck at horde.org>
The alligators were there, too, in a bathtub inside the house.


More information about the sork mailing list