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 @@ ...@@ -41,13 +41,11 @@
String name = ParamUtils.getParameter(request,"servername"); String name = ParamUtils.getParameter(request,"servername");
String muc = ParamUtils.getParameter(request,"mucname"); String muc = ParamUtils.getParameter(request,"mucname");
// Handle a save // Handle a save
Map errors = new HashMap(); Map errors = new HashMap();
if (save) { if (save) {
// do validation // do validation
if (muc == null) { if (muc == null || muc.indexOf('.') >= 0) {
errors.put("mucname","mucname"); errors.put("mucname","mucname");
} }
if (errors.size() == 0) { 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