Better regex to match SOHO Organizer .

This commit is contained in:
Andrew McMillan 2007-11-24 23:40:42 +13:00
parent 522852d4f5
commit 2667580a25

View File

@ -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 . '/';