From 2667580a2508519baebeb2afd5a92195f9109c38 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sat, 24 Nov 2007 23:40:42 +1300 Subject: [PATCH] Better regex to match SOHO Organizer . --- inc/caldav-MKCALENDAR.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-MKCALENDAR.php b/inc/caldav-MKCALENDAR.php index d22730ba..9f48bf18 100644 --- a/inc/caldav-MKCALENDAR.php +++ b/inc/caldav-MKCALENDAR.php @@ -53,7 +53,7 @@ if ( isset($request->xml_tags) ) { * TODO: This is definitely a bug in SOHO Organizer and we probably should respond * with an error, rather than silently doing what they *seem* to want us to do. */ - if ( preg_match( '/ SOHO Organizer\/6\./', $_SERVER['HTTP_USER_AGENT'] ) ) { + if ( preg_match( '/^SOHO.Organizer.6\./', $_SERVER['HTTP_USER_AGENT'] ) ) { dbg_error_log( "MKCALENDAR", "Displayname is '/' to '%s'", $request->path); $parent_container = $request->path; $request->path .= $content . '/';