193 Commits

Author SHA1 Message Date
eppesuig
de29c6c6ee Better check for $_SERVER['PATH_INFO'] 2023-06-21 23:21:57 +00:00
Andrew Ruthven
513db6b8d1 Remove a stray space 2022-12-15 20:50:44 +00:00
Bill McGonigle
abbb6e5e70 support php_fpm under Apache 2.4 (missing PATH_INFO with Apache handler). 2022-12-13 00:12:44 +00:00
Andrew Ruthven
aab8ddfd30 Ensure that all fields are defined, not added dynamically.
PHP 8.2 deprecates dynmically adding properties. See:
  https://php.watch/versions/8.2/dynamic-properties-deprecated
2022-12-10 14:37:31 +13:00
Andrew Ruthven
02af0c58ee Further fixes for PHP 8.1
I don't know why this only show up in the gitlab runners. I have PHP 8.1
locally.
2022-02-13 01:04:47 +13:00
Andrew Ruthven
8096807c6d Fixes for warnings in PHP 8.1 2022-02-12 23:41:28 +13:00
Andrew McMillan
5edf66321d Fix common etag match code, use it everywhere. 2018-01-10 21:50:55 +00:00
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
b4a1e39d6d CalDAVRequest: make content-type match non-greedy
this fixes a warning when the client doesn't include a space between
content-type and charset:

LOG: WARNING:Application sent content-type of "text/vcard;charset=utf-8" instead of "text/vcard"
2017-05-17 11:20:21 +02:00
Florian Schlichting
e94d69d3f7 do not output unescaped XML special characters in if-match error message (fixes: #113) 2017-04-08 13:54:49 +02:00
Florian Schlichting
8639f08d45 RFC7240: "Prefer: return=minimal"
"return-minimal" was current up to and including draft -15
2016-12-30 08:53:31 +01:00
Florian Schlichting
eb7f2edc0c eliminate trailing whitespace, expand tabs 2016-12-30 08:52:44 +01:00
Florian Schlichting
063048802f extra line (duplicate) 2016-12-30 08:52:12 +01:00
Florian Schlichting
1548893229 fix ?add_member when PATH_INFO is not set (closes #96, thanks Thomas Zell!) 2016-12-04 01:07:23 +01:00
Andrew McMillan
c5c0421caf Add /metrics.php to be scraped by Prometheus for monitoring. 2016-06-22 23:53:22 +01:00
Christoph Anton Mitterer
c092a6153e make debug files pathnames more FHS compliant
* Changed the pathnames of the debug files to be a bit more FHS compliant.
2013-09-02 14:40:46 +12: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
4f81556586 Use DeconstructURL rather than rawurldecode since it strips base_name components as well. 2012-07-09 01:17:46 +12:00
Andrew McMillan
07bce5f8bd Don't match parameterised url parts as part of collection name. 2012-07-09 01:17:42 +12:00
Andrew McMillan
d6ddf8e426 Fix errors in calculated PATH_INFO. 2012-07-09 01:16:28 +12:00
Andrew McMillan
f75d51284b Attempt to calculate PATH_INFO if it is not present. 2012-07-08 11:59:11 +12:00
Andrew McMillan
9898c42767 Include memory in statistics log. Option to killing current process after exceeding a memory limit. 2012-06-28 22:17:03 +12:00
Andrew McMillan
5ff5933d0c Allow a configurable path replacement regex.
This can simplify migration from .../home/... to .../calendar/...
for example.
2012-06-17 22:25:25 +12:00
Andrew McMillan
2538835a12 Seems that change to output buffer flushing is problematic with zlib. 2012-06-14 13:36:15 +12:00
Andrew McMillan
0070914394 Fix typo. 2012-05-19 10:00:33 +12:00
Andrew McMillan
33a84595a0 Merge 'Brief' header support into support for "Prefer: return-minimal"
Also reduce error noise from sending headers when output might already
have started, or trying to flush the output buffer when there isn't one.
2012-05-03 19:09:48 +12:00
Andrew McMillan
03b24c4d2f Don't log response for a 404 to reduce log noise. 2012-04-11 00:38:26 +12:00
Andrew McMillan
e35db30a0d There are problems if this gets included twice, somehow. 2012-04-10 22:27:16 +12:00
Andrew McMillan
200b3a08dd Refactor checking of If-*-Match headers into a single place.
This also exposes and fixes a bug in PUT vcard where If-None-Match: "*"
was not being correctly processed.
2012-04-04 16:20:41 +12:00
Andrew McMillan
946e0719ef Changes to Depth handling. 2012-03-22 13:47:11 +13:00
Andrew McMillan
6c5f5157d6 Don't log 401 response since it's so frequent.
Also add a basic status/method/uri in front of each logged error.
2012-03-13 08:33:08 +13:00
Andrew McMillan
4e3cc98f39 Fix defaulting of Depth value for newer PHP versions. 2012-03-02 08:54:13 +13:00
Andrew McMillan
f5d2b397fd Only send a Content-Length if the length is > 0 2012-02-24 11:17:54 +13:00
Andrew McMillan
e9e5073eb5 Implement support for 'Brief' header.
Also add VPOLL and VAVAILABILITY to list of supported components.
2012-01-31 09:23:59 -08:00
Andrew McMillan
5b6d708ba4 Clean up content-type checking so it's not so noisy on null content. 2012-01-30 22:25:03 -08:00
Andrew McMillan
b491d914ea Allow for silly programs that send content-type XML with a GET request. 2012-01-12 18:44:28 +13:00
Andrew McMillan
e641ed0876 Catch missing-xml in request separately from invalid-xml. 2011-12-14 22:18:14 +13:00
Andrew McMillan
f0e60b8fb2 Use supplied content_type even on zero-length requests. 2011-12-03 14:19:50 +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
2fd4a95285 Force casting to text in case someone is using integer usernames. 2011-10-14 11:07:33 +13:00
Andrew McMillan
1327fee9a8 Fix wrong array reference. 2011-10-10 22:26:33 +02:00
Andrew McMillan
ce77dae043 Fail more gracefully on crap encoding input. 2011-10-07 08:27:02 +02:00
Andrew McMillan
0db1fed1de Fix handling where supplied content-type header is busted. 2011-10-06 11:05:15 +02:00
Andrew McMillan
850baa0dbf Support gzip/deflate/compress encoding of incoming entity for PUT etc. 2011-10-05 09:41:00 +02:00
Andrew McMillan
bcb1710d3c Add 'helpful' support for content-encoding on PUT for Helge :-) 2011-10-04 16:17:19 +02:00
Andrew McMillan
6f8e2b1d6e Strip any protocol/host/port part from a MOVE Destination. 2011-09-11 00:45:29 +12:00
Andrew McMillan
c6a1451f14 Fix unassigned variable warning. 2011-09-09 22:53:03 +12:00
Andrew McMillan
b4dfa9c1bf Rewriting some TODO comments as @todo 2011-08-26 01:03:13 +12:00
Andrew McMillan
a8024d2633 Fix XML output of <error> block. 2011-08-23 10:47:00 +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