Commit 00a9f3aa authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Improved service name checking.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@164 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0059bb8d
......@@ -41,13 +41,11 @@
String name = ParamUtils.getParameter(request,"servername");
String muc = ParamUtils.getParameter(request,"mucname");
// Handle a save
Map errors = new HashMap();
if (save) {
// do validation
if (muc == null) {
if (muc == null || muc.indexOf('.') >= 0) {
errors.put("mucname","mucname");
}
if (errors.size() == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment