aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www/PM.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/PM.java')
-rw-r--r--juick-www/src/main/java/com/juick/www/PM.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/juick-www/src/main/java/com/juick/www/PM.java b/juick-www/src/main/java/com/juick/www/PM.java
index f7a7f478..8190d65b 100644
--- a/juick-www/src/main/java/com/juick/www/PM.java
+++ b/juick-www/src/main/java/com/juick/www/PM.java
@@ -20,6 +20,7 @@ package com.juick.www;
import com.juick.server.PMQueries;
import com.juick.server.TagQueries;
import com.juick.server.UserQueries;
+import com.juick.util.UserUtils;
import com.juick.xmpp.JID;
import com.juick.xmpp.Message;
import com.juick.xmpp.Stream;
@@ -69,7 +70,7 @@ public class PM {
List<com.juick.Message> msgs = PMQueries.getLastPMSent(sql, visitor.getUID());
String uname = request.getParameter("uname");
- if (!UserQueries.checkUserNameValid(uname)) {
+ if (!UserUtils.checkUserNameValid(uname)) {
uname = "";
}
@@ -92,7 +93,7 @@ public class PM {
uname = uname.substring(1);
}
int uid = 0;
- if (UserQueries.checkUserNameValid(uname)) {
+ if (UserUtils.checkUserNameValid(uname)) {
uid = UserQueries.getUIDbyName(sql, uname);
}