fix regular expression

This commit is contained in:
Ralf Becker 2014-11-14 09:50:56 +00:00
parent 6b1addce9f
commit 50ce55a93a

View File

@ -1340,7 +1340,7 @@ class vfs_stream_wrapper implements iface_stream_wrapper
if (!isset($ret))
{
$matches = null;
$ret = preg_match('/?(.*&)?ro=([^&]+)/', $url, $matches) && $matches[1];
$ret = preg_match('/\?(.*&)?ro=([^&]+)/', $url, $matches) && $matches[2];
}
return $ret;
}