Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

handle jabber 'resource' in substitutions (TSUN-174)

  • Loading branch information...
commit cf93270336d069a5a694463600f97c66c210df69 1 parent 64c85dd
@nniclausse nniclausse authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/tsung/ts_jabber.erl
View
4 src/tsung/ts_jabber.erl
@@ -280,8 +280,8 @@ subst(Req=#jabber{id=user_defined, username=Name,passwd=Pwd, data=Data}, DynData
put(xmpp_user_id,{NewUser,NewPwd}),% we need to keep the substitution for futures requests
Req#jabber{username=NewUser,passwd=NewPwd,data=NewData};
-subst(Req=#jabber{data=Data}, DynData) ->
- Req#jabber{data=ts_search:subst(Data,DynData)}.
+subst(Req=#jabber{data=Data,resource=Resource}, DynData) ->
+ Req#jabber{data=ts_search:subst(Data,DynData),resource=ts_search:subst(Resource,DynData)}.
%%----------------------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.