[dev] Patch: cvs-releng2 passwd/main.php

Leena Heino Leena.Heino@uta.fi
Mon, 12 Aug 2002 16:16:31 +0300 (EEST)


Remove Call-time pass-by-reference from passwd/main.php:
--- passwd/main.php.orig	Mon Aug 12 16:15:01 2002
+++ passwd/main.php	Mon Aug 12 16:15:33 2002
@@ -71,8 +71,8 @@
        }
        // check for percentages similarity also.  This will catch very simple
        // things like "password" -> "password2" or "xpasssword"...
-       @similar_text($newpassword0, $oldpassword, &$percent1);
-       @similar_text($newpassword0, $userid, &$percent2);
+       @similar_text($newpassword0, $oldpassword, $percent1);
+       @similar_text($newpassword0, $userid, $percent2);
        if ( ($percent1 > 80) || ($percent2 > 80) ) {
           Horde::raiseMessage(_("Your new password is too simple to guess!  Not changed!"),HORDE_WARNING);
           $error = true;

-- 
  -- Leena Heino (liinu at uta.fi)