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

Leena Heino Leena.Heino@uta.fi
Mon, 12 Aug 2002 15:59:53 +0300 (EEST)


Remove Call-time pass-by-reference from passwd/main.php:
--- passwd/main.php.orig	Mon Aug 12 15:55:54 2002
+++ passwd/main.php	Mon Aug 12 15:56:31 2002
@@ -91,8 +91,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) ) {
            $notification->push(_("Your new password is too simple to guess!  Not changed!"), 'horde.warning');
            $error = true;

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