diff options
author | gahr <gahr@FreeBSD.org> | 2012-07-09 18:33:49 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2012-07-09 18:33:49 +0800 |
commit | 64be10ee2090d256ce97293cd087908355ccfbc2 (patch) | |
tree | 07f2494244fce47c0dbe3ba04e243e7fe66266fb /net-im/openfire | |
parent | 222bb11f16222f353d8d469f6efd69c29ac89045 (diff) | |
download | freebsd-ports-gnome-64be10ee2090d256ce97293cd087908355ccfbc2.tar.gz freebsd-ports-gnome-64be10ee2090d256ce97293cd087908355ccfbc2.tar.zst freebsd-ports-gnome-64be10ee2090d256ce97293cd087908355ccfbc2.zip |
- Add dialback patch (http://issues.igniterealtime.org/browse/OF-443)
PR: 169590
Submitted by: "Eugene M. Zheganin" <eugene@zhegan.in>
Diffstat (limited to 'net-im/openfire')
-rw-r--r-- | net-im/openfire/Makefile | 1 | ||||
-rw-r--r-- | net-im/openfire/files/patch-pre-xmpp-dialback-fix.diff | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/net-im/openfire/Makefile b/net-im/openfire/Makefile index 7c1e789371ba..70a49722d2d6 100644 --- a/net-im/openfire/Makefile +++ b/net-im/openfire/Makefile @@ -7,6 +7,7 @@ PORTNAME= openfire PORTVERSION= 3.7.1 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net-im java MASTER_SITES= http://download.igniterealtime.org/openfire/ diff --git a/net-im/openfire/files/patch-pre-xmpp-dialback-fix.diff b/net-im/openfire/files/patch-pre-xmpp-dialback-fix.diff new file mode 100644 index 000000000000..37ff1faf5c71 --- /dev/null +++ b/net-im/openfire/files/patch-pre-xmpp-dialback-fix.diff @@ -0,0 +1,17 @@ +Index: src/java/org/jivesoftware/openfire/session/LocalIncomingServerSession.java +=================================================================== +--- src/java/org/jivesoftware/openfire/session/LocalIncomingServerSession.java (wersja 12902) ++++ src/java/org/jivesoftware/openfire/session/LocalIncomingServerSession.java (kopia robocza) +@@ -122,7 +122,11 @@ + openingStream.append(" xmlns=\"jabber:server\"");
+ openingStream.append(" from=\"").append(serverName).append("\"");
+ openingStream.append(" id=\"").append(streamID).append("\"");
+- openingStream.append(" version=\"1.0\">");
++ if (serverVersion[0] >= 1) {
++ openingStream.append(" version=\"1.0\">");
++ } else {
++ openingStream.append(">");
++ }
+ connection.deliverRawText(openingStream.toString());
+
+ if (serverVersion[0] >= 1) {
|