From 5e615ef26ebb004d4f1a655637819e878d6306b8 Mon Sep 17 00:00:00 2001 From: Doug Date: Mon, 6 Jul 2015 23:54:25 -0700 Subject: [PATCH] Fixed bug that caused substrings of reserved usernames to be treated as reserved. --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 92588d9ca9e..dc5239d9570 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -231,7 +231,7 @@ class UsersController < ApplicationController return fail_with("login.password_too_long") end - if SiteSetting.reserved_usernames.include? params[:username].downcase + if SiteSetting.reserved_usernames.split("|").include? params[:username].downcase return fail_with("login.reserved_username") end