From 50ce55a93af7a78c898763ae3abb351240bad4c3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 14 Nov 2014 09:50:56 +0000 Subject: [PATCH] fix regular expression --- phpgwapi/inc/class.vfs_stream_wrapper.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.vfs_stream_wrapper.inc.php b/phpgwapi/inc/class.vfs_stream_wrapper.inc.php index 985dfe822f..caf993043b 100644 --- a/phpgwapi/inc/class.vfs_stream_wrapper.inc.php +++ b/phpgwapi/inc/class.vfs_stream_wrapper.inc.php @@ -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; }