mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-31 18:46:02 +00:00
Enforce a trailling '/' on collections when they are created.
This commit is contained in:
parent
a37a68b8ca
commit
d99f8ccc35
@ -15,6 +15,10 @@ if ( ! $request->AllowedTo('mkcalendar') ) {
|
||||
}
|
||||
|
||||
$displayname = $request->path;
|
||||
|
||||
// Enforce trailling '/' on collection name
|
||||
if ( ! preg_match( '#/$#', $request->path ) ) $request->path .= '/';
|
||||
|
||||
$parent_container = '/';
|
||||
if ( preg_match( '#^(.*/)([^/]+)(/)?$#', $request->path, $matches ) ) {
|
||||
$parent_container = $matches[1];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user