creating a DAVResource from "/ " loops a lot

This commit is contained in:
Florian Schlichting 2017-01-10 22:04:30 +01:00
parent 0ca04aaa68
commit 93bd6073b1
2 changed files with 2 additions and 0 deletions

View File

@ -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 ) ) {

View File

@ -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 ) ) {