From 7be6aee280179c638d16c56b9ce93af5e60f0169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ja=CC=81n=20Ma=CC=81te=CC=81?= Date: Wed, 14 May 2014 13:37:51 +0200 Subject: [PATCH] added functions for regex comparison (see next commits) --- inc/caldav-PROPFIND.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/caldav-PROPFIND.php b/inc/caldav-PROPFIND.php index e212d973..31ab3261 100644 --- a/inc/caldav-PROPFIND.php +++ b/inc/caldav-PROPFIND.php @@ -104,6 +104,9 @@ function add_proxy_response( $which, $parent_path ) { function get_collection_contents( $depth, $collection, $parent_path = null ) { global $c, $session, $request, $reply, $property_list; + // for http header comparison + function compare_val_with_re($val, $re){ return preg_match($re, $val)===1 ? 0 : 1; } + $bound_from = $collection->bound_from(); $bound_to = $collection->dav_name(); if ( !isset($parent_path) ) $parent_path = $collection->dav_name();