From: Klaas Freitag
---
src/webui/app/controllers/project_controller.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/webui/app/controllers/project_controller.rb b/src/webui/app/controllers/project_controller.rb
index bcfa288..6f6917b 100644
--- a/src/webui/app/controllers/project_controller.rb
+++ b/src/webui/app/controllers/project_controller.rb
@@ -265,7 +265,7 @@ class ProjectController < ApplicationController
def check_params
logger.debug "Checking parameter #{params[:name]}"
if params[:name]
- unless params[:name] =~ /^\w\w*$/
+ unless params[:name] =~ /^\w[-\w]*$/
flash[:error] = "Invalid project name, may only contain alphanumeric characters"
redirect_to :action => :new
end
--
1.7.7
--
To unsubscribe, e-mail: obs-commits+unsubscribe@opensuse.org
To contact the owner, e-mail: obs-commits+owner@opensuse.org