mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-27 02:54:27 +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;
|
global $c;
|
||||||
|
|
||||||
$dav_name = rawurldecode($url);
|
$dav_name = rawurldecode($url);
|
||||||
|
$dav_name = trim($dav_name);
|
||||||
|
|
||||||
/** Allow a path like .../username/calendar.ics to translate into the calendar URL */
|
/** Allow a path like .../username/calendar.ics to translate into the calendar URL */
|
||||||
if ( preg_match( '#^(/[^/]+/[^/]+).ics$#', $dav_name, $matches ) ) {
|
if ( preg_match( '#^(/[^/]+/[^/]+).ics$#', $dav_name, $matches ) ) {
|
||||||
|
|||||||
@ -380,6 +380,7 @@ function DeconstructURL( $url, $force_script = false ) {
|
|||||||
global $c;
|
global $c;
|
||||||
|
|
||||||
$dav_name = rawurldecode($url);
|
$dav_name = rawurldecode($url);
|
||||||
|
$dav_name = trim($dav_name);
|
||||||
|
|
||||||
/** Allow a path like .../username/calendar.ics to translate into the calendar URL */
|
/** Allow a path like .../username/calendar.ics to translate into the calendar URL */
|
||||||
if ( preg_match( '#^(/[^/]+/[^/]+).ics$#', $dav_name, $matches ) ) {
|
if ( preg_match( '#^(/[^/]+/[^/]+).ics$#', $dav_name, $matches ) ) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user