mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-20 16:56:02 +00:00
added functions for regex comparison (see next commits)
This commit is contained in:
parent
92f48f38cd
commit
7be6aee280
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user