We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b389da commit 3774227Copy full SHA for 3774227
xmpp/xmpp_jid.php
@@ -51,10 +51,10 @@ class XMPPJid {
51
public $bare = null;
52
53
public function __construct($str) {
54
- $tmp = explode("@", $str);
+ $tmp = explode("@", $str, 2);
55
if(sizeof($tmp) == 2) {
56
$this->node = $tmp[0];
57
- $tmp = explode("/", $tmp[1]);
+ $tmp = explode("/", $tmp[1], 2);
58
59
$this->domain = $tmp[0];
60
$this->resource = $tmp[1];
0 commit comments