Author: leithoff
New Revision: 26583
URL: http://www.egroupware.org/viewvc?rev=3D26583&view=3Drev
Log:
giving a valid responsehaeder back if we get al malformed or missing url (P=
ATH_INFO)
Modified:
trunk/egroupware/webdav.php
Modified: trunk/egroupware/webdav.php
URL: http://www.egroupware.org/viewvc/trunk/egroupware/webdav.php?rev=3D265=
83&r1=3D26582&r2=3D26583&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
— trunk/egroupware/webdav.php (original)
+++ trunk/egroupware/webdav.php Fri Feb 27 11:05:15 2009
@@ -46,7 +46,11 @@
$parts =3D explode(’/’,$_SERVER[‘PATH_INFO’]);
//error_log(“webdav: explode”.print_r($parts,true));
if(count($parts)=3D=3D 1){
- echo “Malformed Url: missing slash” ;
- error_log(METHOD. “Malformed Url: missing slash:\n”.$SERVER['SERVER=
NAME’]."\n PATH_INFO:".$_SERVER[‘PATH_INFO’]. -
"\n REQUEST_URI".$_SERVER['REQUEST_URI']."\n ORIG_SCRIPT_NAME:".$_SERVER=
[‘ORIG_SCRIPT_NAME’].
-
"\n REMOTE_ADDR:".$_SERVER['REMOTE_ADDR']."\n PATH_INFO:".$_SERVER['PATH=
_INFO’]."\n HTTP_USER_AGENT:".$_SERVER[‘HTTP_USER_AGENT’]) ;
- header(“HTTP/1.1 501 Not implemented”);
- header(“X-WebDAV-Status: 501 Not implemented”, true);
exit;
}
=
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs