Permalink
Browse files

Merge pull request #1 from raoulbhatia/master

allow versioned stream socket transports (e.g. sslv2/sslv3)
  • Loading branch information...
2 parents a9bbc13 + 70a1394 commit ffb968ad4b61ac59c9567abbd664de8c958a775b @dejanb committed Dec 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/Stomp.php
View
2 src/main/Stomp.php
@@ -86,7 +86,7 @@ public function __construct ($brokerUri)
*/
protected function _init ()
{
- $pattern = "|^(([a-zA-Z]+)://)+\(*([a-zA-Z0-9\.:/i,-]+)\)*\??([a-zA-Z0-9=&]*)$|i";
+ $pattern = "|^(([a-zA-Z0-9]+)://)+\(*([a-zA-Z0-9\.:/i,-]+)\)*\??([a-zA-Z0-9=&]*)$|i";
if (preg_match($pattern, $this->_brokerUri, $regs)) {
$scheme = $regs[2];
$hosts = $regs[3];

0 comments on commit ffb968a

Please sign in to comment.