also detect end of <stream:features>
This commit is contained in:
parent
d228a306d4
commit
2e8149f242
@ -390,7 +390,10 @@ class XMPPHP_XMLStream {
|
|||||||
}
|
}
|
||||||
//we always have a space since the namespace needs to be
|
//we always have a space since the namespace needs to be
|
||||||
//declared. could be a tab, though
|
//declared. could be a tab, though
|
||||||
$start = substr($buff, 1, strpos($buff, ' ', 2) - 1);
|
$start = substr(
|
||||||
|
$buff, 1,
|
||||||
|
min(strpos($buff, '>', 2), strpos($buff, ' ', 2)) - 1
|
||||||
|
);
|
||||||
$stop = substr($buff, -strlen($start) - 3);
|
$stop = substr($buff, -strlen($start) - 3);
|
||||||
|
|
||||||
if ($start == '?xml') {
|
if ($start == '?xml') {
|
||||||
|
Loading…
Reference in New Issue
Block a user