# HG changeset patch # User Paul Boddie # Date 1394143355 -3600 # Node ID cbb6ff21cf5b50c3b0e01aba91261d51ca629faf # Parent 266dd6187eaa69c814f58ec5cb3ab19e0db3a0a6 Added a patch fixing plugin failure when the XMPP server is unavailable. diff -r 266dd6187eaa -r cbb6ff21cf5b debian/control --- a/debian/control Sat Feb 22 16:04:40 2014 +0100 +++ b/debian/control Thu Mar 06 23:02:35 2014 +0100 @@ -3,7 +3,7 @@ Priority: extra Maintainer: Christoph Wickert Uploaders: Jeroen van Meeuwen (Kolab Systems) , Paul Klos -Build-Depends: debhelper (>= 8) +Build-Depends: debhelper (>= 8), quilt Standards-Version: 3.9.3 Package: roundcubemail-plugin-converse diff -r 266dd6187eaa -r cbb6ff21cf5b debian/patches/fix-empty-response.diff --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/patches/fix-empty-response.diff Thu Mar 06 23:02:35 2014 +0100 @@ -0,0 +1,14 @@ +diff --git a/php/xmpp-prebind-php/lib/XmppPrebind.php b/php/xmpp-prebind-php/lib/XmppPrebind.php +index 0658eaa..2c68ea0 100644 +--- a/php/xmpp-prebind-php/lib/XmppPrebind.php ++++ b/php/xmpp-prebind-php/lib/XmppPrebind.php +@@ -122,6 +122,9 @@ class XmppPrebind { + $this->password = $password; + + $response = $this->sendInitialConnection(); ++ if ($response == '') { ++ throw new Exception('Empty response'); ++ } + + $body = self::getBodyFromXml($response); + $this->sid = $body->getAttribute('sid'); diff -r 266dd6187eaa -r cbb6ff21cf5b debian/patches/series --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/patches/series Thu Mar 06 23:02:35 2014 +0100 @@ -0,0 +1,1 @@ +fix-empty-response.diff diff -r 266dd6187eaa -r cbb6ff21cf5b debian/source/format --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/source/format Thu Mar 06 23:02:35 2014 +0100 @@ -0,0 +1,1 @@ +3.0 (quilt)