diff options
author | Daniel <daniel@mars.(none)> | 2012-04-15 12:30:22 +0400 |
---|---|---|
committer | Daniel <daniel@mars.(none)> | 2012-04-15 12:30:22 +0400 |
commit | fd16784bcc4ffbd677d17f423d18ff60dc110f1e (patch) | |
tree | f300193c82c120ea68d8c417ee669b260396e260 /lib/migrate.php | |
parent | 44c34115a45fd3acd4450af415004263315a21f0 (diff) |
fix bug where users could use wildcards in username to login
e.g. user Peter could probably login using username Pet%
fixed same problem in the migration script
Diffstat (limited to 'lib/migrate.php')
-rw-r--r-- | lib/migrate.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/migrate.php b/lib/migrate.php index 1ce86198994..0218229d981 100644 --- a/lib/migrate.php +++ b/lib/migrate.php @@ -457,7 +457,7 @@ class OC_Migrate{ ); // Add hash if user export if( self::$exporttype == 'user' ){ - $query = OC_DB::prepare( "SELECT password FROM *PREFIX*users WHERE uid LIKE ?" ); + $query = OC_DB::prepare( "SELECT password FROM *PREFIX*users WHERE uid = ?" ); $result = $query->execute( array( self::$uid ) ); $row = $result->fetchRow(); $hash = $row ? $row['password'] : false; |