mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-09 22:51:07 +01:00
put the com url transcoder into the org app so that urls are parsed out and href'd appropriately...
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1978 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
6a6eb14e31
commit
ff03adb970
2 changed files with 190 additions and 2 deletions
|
|
@ -84,7 +84,7 @@ public class JiveChatServlet
|
|||
static protected Map PACKET_ROOT_CHATDATA_MAP = new HashMap();
|
||||
|
||||
static protected EmoticonFilter EMOTICONFILTER = new EmoticonFilter();
|
||||
static protected URLFilter URLFILTER = new URLFilter();
|
||||
static protected URLTranscoder URLTRANSCODER = new URLTranscoder();
|
||||
|
||||
|
||||
protected String host;
|
||||
|
|
@ -196,7 +196,7 @@ public class JiveChatServlet
|
|||
body = this.replace(body, "\"", """);
|
||||
|
||||
// encode the embedded urls
|
||||
body = URLFILTER.applyFilter(body);
|
||||
body = URLTRANSCODER.encodeURLsInText(body);
|
||||
|
||||
// Apply emoticons
|
||||
body = EMOTICONFILTER.applyFilter(body);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue