Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <daniel@mars.(none)>2012-04-15 12:30:22 +0400
committerDaniel <daniel@mars.(none)>2012-04-15 12:30:22 +0400
commitfd16784bcc4ffbd677d17f423d18ff60dc110f1e (patch)
treef300193c82c120ea68d8c417ee669b260396e260 /lib/migrate.php
parent44c34115a45fd3acd4450af415004263315a21f0 (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.php2
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;