diff options
author | Alexander Alexeev | 2016-12-11 00:00:35 +0700 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-11 18:24:37 +0300 |
commit | 5ff660e5f3e73382781f854a0afc350d2ad6d626 (patch) | |
tree | ab6ab4447c08d80dd3aa467daee3080b1b775395 /juick-www/src/main/java/com/juick/www | |
parent | b1861f326a834865f1d700745dfb5f1b1596ba1f (diff) |
duplicated util method is removed
Diffstat (limited to 'juick-www/src/main/java/com/juick/www')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/PM.java | 6 |
1 files changed, 3 insertions, 3 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 78dbff10..d11de239 100644 --- a/juick-www/src/main/java/com/juick/www/PM.java +++ b/juick-www/src/main/java/com/juick/www/PM.java @@ -21,7 +21,7 @@ import com.juick.server.PMQueries; import com.juick.server.TagQueries; import com.juick.server.UserQueries; import com.juick.util.MessageUtils; -import com.juick.util.UserUtils; +import com.juick.util.WebUtils; import com.mitchellbosecke.pebble.error.PebbleException; import com.mitchellbosecke.pebble.template.PebbleTemplate; import org.slf4j.Logger; @@ -70,7 +70,7 @@ public class PM { List<com.juick.Message> msgs = PMQueries.getLastPMSent(sql, visitor.getUid()); String uname = request.getParameter("uname"); - if (!UserUtils.checkUserNameValid(uname)) { + if (WebUtils.isNotUserName(uname)) { uname = ""; } @@ -93,7 +93,7 @@ public class PM { uname = uname.substring(1); } int uid = 0; - if (UserUtils.checkUserNameValid(uname)) { + if (WebUtils.isUserName(uname)) { uid = UserQueries.getUIDbyName(sql, uname); } |