Tuesday 24 January 2006 4:09:07 pm
I also had to alter ./kernel/classes/webdav/ezwebdavcontentserver.php in line 943 (svn 3.7 stable) from:
if ( preg_match( "#^/" . preg_quote( $site ) . "(.*)$#", $path, $matches ) )
to
if ( preg_match( "#^" . preg_quote( $site ) . "(.*)$#", $path, $matches ) )
to get webdav partly running so that i can browse into the 'web'-folder due to the variables $path and $site:
$site = 'web'
$path = 'web/Content/'
otherwise i cant browse into the 'web'-folder and in the webdav log appears:
no valid site was found..
look at the complete function:
function currentSiteFromPath( $path )
{
$this->appendLogEntry( "start path: $path", 'CS:currentSitePath' );
$indexDir = eZSys::indexDir();
// Remove indexDir if used in non-virtualhost mode.
if ( preg_match( "#^" . preg_quote( $indexDir ) . "(.+)$#", $path, $matches ) )
{
$path = $matches[1];
}
$this->appendLogEntry( "indexdir: $path", 'CS:currentSitePath' );
// Get the list of available sites.
$sites = $this->availableSites();
foreach ( $sites as $site )
{
$this->appendLogEntry( "site: '$site' path: '$path'", '<-- SEAWOLF -->' );
// Check if given path starts with this site-name, if so: return it.
//SEAWOLF if ( preg_match( "#^/" . preg_quote( $site ) . "(.*)$#", $path, $matches ) )
if ( preg_match( "#^" . preg_quote( $site ) . "(.*)$#", $path, $matches ) )
{
$this->appendLogEntry( "site $site: $path", 'CS:currentSitePath' );
return $site ;
}
}
$this->appendLogEntry( "no valid site was found..", 'CS:currentSitePath' );
return false ;
}
-------------------------------------------------------------------------------------------
join #ezpublish on irc.freenode.org
|