steffen: server/kolab-resource-handlers/kolab-resource-handlers/freebusy freebusy.php, 1.29, 1.30 misc.php, 1.2, 1.3
cvs at intevation.de
cvs at intevation.de
Thu Oct 7 13:15:11 CEST 2004
Author: steffen
Update of /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/freebusy
In directory doto:/tmp/cvs-serv7263/kolab-resource-handlers/kolab-resource-handlers/freebusy
Modified Files:
freebusy.php misc.php
Log Message:
res improvements
Index: freebusy.php
===================================================================
RCS file: /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/freebusy/freebusy.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- freebusy.php 5 Oct 2004 09:13:41 -0000 1.29
+++ freebusy.php 7 Oct 2004 11:15:09 -0000 1.30
@@ -24,6 +24,10 @@
$imapuser = $ldap->mailForUid( $imapuser );
$homeserver = $ldap->homeServer( $user );
+if( $homeserver === false ) {
+ notFound("Resource ".$_SERVER['REQUEST_URI']." not found");
+}
+
if( $homeserver != $params['server'] ) {
$redirect = 'https://'.$homeserver . $_SERVER['REQUEST_URI'];
if ($params['redirect']) {
Index: misc.php
===================================================================
RCS file: /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/freebusy/misc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- misc.php 5 Oct 2004 09:13:41 -0000 1.2
+++ misc.php 7 Oct 2004 11:15:09 -0000 1.3
@@ -14,6 +14,7 @@
}
function serverError($errortext) {
+ myLog( $errortext, RM_LOG_ERROR );
shutdown();
header('HTTP/1.0 500 Server Error');
@@ -38,6 +39,7 @@
}
function notFound($errortext) {
+ myLog( $errortext, RM_LOG_ERROR );
shutdown();
header('HTTP/1.0 404 Not Found');
@@ -63,6 +65,7 @@
function unauthorized($errortext = '') {
global $params;
+ myLog( $errortext, RM_LOG_ERROR );
shutdown();
header('WWW-Authenticate: Basic realm="freebusy-'.$params['email_domain'].'"');
More information about the commits
mailing list