Florian Schlichting
f37daa4ed7
clean up obsolete code: supported_methods and supported_reports was moved to DAVResource
2018-01-08 22:45:33 +01:00
Florian Schlichting
8f16da75eb
fix "PHP Warning: preg_match(): No ending delimiter '.' found"
...
the second argument of param_to_global, if set, becomes the first
argument of a call to preg_match(). Unless it's the special value 'int',
it needs to have regex delimiters around it, like '/.*/'
In this case, we're not interested in the value of the add-member
parameter, we only want to check for its existence, so skip validation.
2017-10-04 23:02:12 +02:00
Florian Schlichting
b1191bd83c
caldav: leave some info about the exception we are catching
2017-04-28 17:43:13 +02:00
Florian Schlichting
eb7f2edc0c
eliminate trailing whitespace, expand tabs
2016-12-30 08:52:44 +01:00
Florian Schlichting
bb8ae530f5
a helpful comment
...
(and a lot of whitespace cleanup)
2016-09-14 23:46:41 +02:00
Andrew McMillan
b85f8e79fe
Fail better!
...
There's a long-standing annoyance about catching errors in the early
stages of startup - sometimes they seem to disappear nowhere and yet
nothing works. This fixes at least part of that.
2016-06-22 23:26:24 +01:00
Florian Schlichting
8e9eaa3410
fix issue #72 - 405 error when adding a new contact from Apple's Contacts
...
As can be seen from the reporter's debug output, the problem is that
the POST goes to .../?add-member, whereas davical expects / works with /
redirects to ?add_member (note the underscore). So we have davical treat
?add-member the same as ?add_member
2015-12-26 14:33:28 +01:00
Frank O. Martin
ce379d3cf7
Removed favicon.ico work around
2015-11-19 19:41:16 +01:00
Andrew McMillan
e49d3dd225
We will add a setting to disable the DAV header on non-OPTIONS requests.
2013-09-26 14:24:38 +02:00
Christoph Anton Mitterer
8e60bb3124
set line endings of most text files to LF
...
* Changed the end-of-line encodings of all non-Windows-related and non-autogenerated text files to use UNIX LF (lots of them had mixed LF/CRLF).
Conflicts:
inc/caldav-PUT-functions.php
2013-09-02 14:37:23 +12:00
Andrew McMillan
9e774b295a
When we get here it is a Bad Request, not a Server Error.
2012-09-20 23:54:47 +12:00
Andrew McMillan
9d7d453211
Workaround client software with imperfect add-member implementations.
2012-09-20 23:35:21 +12:00
Andrew McMillan
f55f8fbee3
Allow complete disabling of handling for Apple's old calendar-proxy.
...
We'll make this a default behaviour after 2012 is over and remove it
sometime after that.
2012-03-22 13:52:20 +13:00
Andrew McMillan
b50b2d82ea
Force output buffers to be flushed, if they're turned on.
...
If output buffering is turned on, PHP can be a bit slack about sending
the data to the client before closing the connection with exit(). These
changes ensure we call ob_flush() before we leave. We call @ob_flush()
so we don't get noisy warnings when output buffering is off...
2011-11-02 18:43:10 +13:00
Andrew McMillan
44ba4443f6
Move well-known.php into the include directory.
...
Also start to add some basic support for autodiscover.xml handling.
2011-10-07 09:58:20 +02:00
Andrew McMillan
0db1fed1de
Fix handling where supplied content-type header is busted.
2011-10-06 11:05:15 +02:00
Andrew McMillan
1cf247cf39
Rename caldav-PUT.php to reflect it's calendaring association.
2011-09-08 13:45:15 +12:00
Andrew McMillan
b4dfa9c1bf
Rewriting some TODO comments as @todo
2011-08-26 01:03:13 +12:00
Andrew McMillan
d83d7a0ef2
Fix raw_post handling for other front-ends.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-04-03 21:34:59 +12:00
Andrew McMillan
1816d313bd
Move header logging from CalDAVRequest to caldav.php
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-04-03 20:38:23 +12:00
Andrew McMillan
20514c05e6
Turn on calendar-auto-schedule header if $c->enable_auto_schedule
2010-10-14 21:20:02 -04:00
Andrew McMillan
ed9b3ae693
Tweaking OPTIONS output.
2010-09-12 16:22:58 +12:00
Andrew McMillan
64f20edaab
Coerce the content-type on PUT.
...
It seems that failing to correctly set the content-type header
on PUT is a common error.
2010-08-29 13:01:56 +12:00
Andrew McMillan
efd40937fe
Rewrite the way the DAV header is produced.
2010-06-28 08:39:03 +12:00
Andrew McMillan
dfa78960a0
Add indication of support for addressbook.
2010-06-27 18:47:19 +12:00
Andrew McMillan
9002e974fc
Add a hack so older Mozilla calendar versions don't see auto-schedule.
2010-05-19 23:48:45 +12:00
Andrew McMillan
f5ee8da945
Add a hack to work around Lightning/Sunbird bug #463392
2010-05-17 22:50:40 +12:00
Andrew McMillan
8a5ba6a07e
A (still broken) start on parsing VCARD on PUT.
2010-05-12 22:17:10 +12:00
Rob Ostensen
528211bc65
First phase of iSchedule support. Capabilities supported as well as validating remote requests. Still need to handle remote requests.
2010-04-19 14:17:19 +12:00
Andrew McMillan
a2c3c4a620
Add support for arbitray text objects in collections.
2010-03-29 22:38:45 +13:00
Andrew McMillan
f0964f7583
Move always.php into the webroot for easier setup.
...
Also add some 'search for the AWL includes' code into it for
even more easier setup.
2010-03-23 21:52:00 +13:00
Andrew McMillan
ce9954d7d3
Update DAV header.
2010-03-20 08:41:54 +13:00
Andrew McMillan
103a6ec146
404 check was insufficient here.
2010-03-15 00:32:53 +13:00
Andrew McMillan
ed055722e9
Working BIND and PROPFIND of bound resources.
2010-03-14 00:22:43 +13:00
Andrew McMillan
4db6703c05
Support for DELTICKET completed.
2010-03-08 16:44:55 +13:00
Andrew McMillan
0fffd0e417
First (untested) cut at MKTICKET implementation.
2010-03-05 00:02:26 +13:00
Andrew McMillan
49257629ea
It's possible for $_SERVER['PATH_INFO'] to be unset.
2010-02-25 09:48:38 +13:00
Andrew McMillan
945b9d501c
Provide passthru on icons, images, css and js files.
...
In Chrome it requests the favicon (for example) very frequently
which was causing a prompt for authentication where there was a
poorly considered regex in the rewrite rules. I think this is
a good backup to the rewrite rules to pass through on such files.
2010-02-24 12:47:55 +13:00
Andrew McMillan
cb553dbfe3
Closer to new RepeatRule.
2010-02-18 00:22:06 +13:00
Andrew McMillan
9b971b26dc
iCal4 wants to see 'calendar-proxy' in the DAV header.
2009-12-24 20:25:14 +13:00
Andrew McMillan
3cb5a13acd
Advertise support for ACL method.
2009-12-23 23:32:35 +13:00
Andrew McMillan
5b0cf8b462
Test cases just prior to switch to new PROPFIND implementation.
2009-11-12 00:41:54 +13:00
Andrew McMillan
711cd28994
Add configuration for using new PROPFIND implementation.
2009-11-08 20:31:37 +13:00
Andrew McMillan
d5a60406bf
Switch to always sending an 'Allow:' header.
2009-11-05 16:20:01 +13:00
Andrew McMillan
3df6ccc4ba
Getting 'MOVE' working has proven surprisingly complex.
2009-11-04 00:17:10 +13:00
Andrew McMillan
d14029f8bb
Advertise support for extended MKCOL.
2009-10-15 23:11:40 +13:00
Andrew McMillan
2e67fd5d41
Starting to write support for RFC5689 (extended MKCOL).
2009-10-15 13:11:18 +13:00
Andrew McMillan
1cf3e9e8e1
Correct a comment which was so, so wrong.
2009-09-25 22:16:31 +12:00
Andrew McMillan
a52a11df28
Attempt to redirect default iPhone PROPFIND URL to somewhere useful.
2009-06-22 10:18:39 +12:00
Andrew McMillan
ba67df4d1f
More reasonable test for early 404.
2009-06-14 21:20:15 +12:00