mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +00:00
creating a DAVResource from "/ " loops a lot
This commit is contained in:
parent
0ca04aaa68
commit
93bd6073b1
@ -380,6 +380,7 @@ function DeconstructURL( $url, $force_script = false ) {
|
||||
global $c;
|
||||
|
||||
$dav_name = rawurldecode($url);
|
||||
$dav_name = trim($dav_name);
|
||||
|
||||
/** Allow a path like .../username/calendar.ics to translate into the calendar URL */
|
||||
if ( preg_match( '#^(/[^/]+/[^/]+).ics$#', $dav_name, $matches ) ) {
|
||||
|
||||
@ -380,6 +380,7 @@ function DeconstructURL( $url, $force_script = false ) {
|
||||
global $c;
|
||||
|
||||
$dav_name = rawurldecode($url);
|
||||
$dav_name = trim($dav_name);
|
||||
|
||||
/** Allow a path like .../username/calendar.ics to translate into the calendar URL */
|
||||
if ( preg_match( '#^(/[^/]+/[^/]+).ics$#', $dav_name, $matches ) ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user