SPARK-1075: trim resource when login, to ensure digest match between spark and openfire when SOCKX5 transfer is used(openfire transfer proxy)

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@13103 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
mirceac
2012-06-08 13:52:15 +00:00
parent 1510b10516
commit c8b2a64059

View File

@ -1030,7 +1030,7 @@ public class LoginDialog {
String resource = localPref.getResource();
connection.login(getLoginUsername(), getLoginPassword(),
org.jivesoftware.spark.util.StringUtils.modifyWildcards(resource));
org.jivesoftware.spark.util.StringUtils.modifyWildcards(resource).trim());
sessionManager.setServerAddress(connection.getServiceName());
sessionManager.initializeSession(connection, getLoginUsername(), getLoginPassword());