3414 Commits

Author SHA1 Message Date
Andrew McMillan
d0fffe490a Set the default timezone to the database as well as for PHP. 2013-09-26 14:24:08 +02:00
Andrew McMillan
f074f214d0 Freebusy should use vComponent rather than the deprecated iCalComponent 2013-09-24 15:43:00 +02:00
Andrew McMillan
8b52d69e1e Force consistent result ordering. 2013-09-24 12:15:02 +02:00
Andrew McMillan
7346c35c0c Results changed for new VXXXXX parser. 2013-09-24 12:14:42 +02:00
Andrew McMillan
50c25cc740 Add options to do colourized, side-by-side & meld reviewing of results. 2013-09-24 11:46:37 +02:00
Andrew McMillan
2589a886f8 Fix deprecated warning. 2013-09-24 11:45:47 +02:00
Andrew Ruthven
ad4e6f1a0b Merge pull request #14 from matthiasbeyer/fix-ldap_driver_caching
Fix ldap driver caching
2013-09-23 03:06:08 -07:00
Andrew Ruthven
5f2a7eb1d3 Merge pull request #13 from matthiasbeyer/ldap_error_output
Added dbg_error_log() calls for error msgs
2013-09-23 03:02:45 -07:00
Ján Máté
183a8c4083 fix for $c->hide_TODO processing and user-agent extension
new option: if set to PHP regex string then hide_TODO is enabled if the client
user-agent string matches the regex for example:
    $c->hide_TODO='#^iOS.*dataaccessd.*#';
will hide all todos from non-owner/non-admin users for iOS devices
2013-09-20 23:18:55 +12:00
Ján Máté
26275a5fab fix of major todo synchronization issue if $c->hide_older_than option is set
todo without start date was never synced
2013-09-20 23:09:43 +12:00
Ján Máté
c2f309981d fix to rename/delete the collection properties during the collection renaming/deleting 2013-09-20 23:06:25 +12:00
Ján Máté
a264a752c4 Extend $c->default_collections - adding 'calendar_components' and 'default_properties'
'calendar_components' sets the
'urn:ietf:params:xml:ns:caldav:supported-calendar-component-set' property for
the calendar collection (used to distinguish between different type of calendar
collections, for example: todo and event calendars) the value must be a
non-empty array; allowed values: 'VEVENT', 'VTODO', 'VJOURNAL', 'VTIMEZONE',
'VFREEBUSY', 'VPOLL', 'VAVAILABILITY'
for example:
  array('VEVENT')
  array('VTODO')
  array('VEVENT', 'VTODO')
  null or undefined => all default calendar components are supported - see
    $c->default_calendar_components
NOTE: if you want to change the value of this property later, you need to do
it directly in the database ("property" table) or in the client software!

'default_properties' sets custom properties for the collection in the
"property" table the value must be a non-empty associative array of
key => value pairs (key = property name, value = property value) for example
(set the calendar color property used by Apple and other clients):
  'default_properties' => array('http://apple.com/ns/ical/:calendar-color'=>'#ff0000'),
   null or undefined   => no property is stored in the database
NOTE: if you want to change the value of this property later, you need to do
it directly in the database ("property" table) or in the client software!
2013-09-20 23:00:40 +12:00
Ján Máté
1532b757f5 Prevent processing of collections from inactive principals
e.g. inactive principal collections are not returned if you use clients with
"delegation" support.
2013-09-20 22:57:54 +12:00
Matthias Beyer
ef365a5940 Only set the cached instance if driver is valid
As I could see at other locations in the code, the ldap driver instance
can be invalid. And if the instance is invalid, the getStaticLdap()
function gets called again. Caching would prevent the function from
retrying to initiate the ldapDrivers object.

This commit adds conditional caching: only if the ldap driver instance is
valid, the object gets cached. This ensures that a retry with this function
would really try to create a new ldapDrivers object and not simply
return the (invalid) cached one.
2013-09-19 11:11:44 +02:00
Matthias Beyer
953b922a13 Instance caching added
There was already a variable to cache the ldap driver instance, and a
check if this variable was already set was there, too! But there was no
code to return the cached instance if the function gets called twice!

Maybe this was simply forgotten...
2013-09-19 11:08:43 +02:00
Matthias Beyer
1f21370b20 Added dbg_error_log() calls for error msgs
If the ldap driver is not valid, the error messages were not printed.
There was just "Couldn't contact LDAP server for authentication" - But
why?

This commit adds a print loop for all messages from the global
$c->messages message array.
2013-09-19 09:49:55 +02:00
Milan Medlik
2f66c35b22 Merge branch 'master' of https://github.com/DAViCal/davical 2013-09-16 16:03:10 +12:00
Jason Alavaliant
72dc5b1f39 fix the append box when importing collections 2013-09-02 15:02:47 +12:00
Jason Alavaliant
2f27d181f0 fix for CLASS attribute problem (CONFIDENTIAL value) and invalid processing of ->hide_alarm configuration option: 2013-09-02 14:54:12 +12:00
Christoph Anton Mitterer
1d54f57533 removed debian/README.Debian
* Removed debian/README.Debian which didn’t contain any useful information.
2013-09-02 14:53:47 +12:00
Christoph Anton Mitterer
35e471013b support Apache’s REDIRECT_REMOTE_USER CGI env var
* In places where the CGI variable REMOTE_USER is read, support alternatively
  REDIRECT_REMOTE_USER, which is used by the Apache HTTPD Server instead, when a
  redirect was used.

Note: This alone is not enough yet, to fully support it in DAViCal. An analogous
      change (commit 29ddd89baaf65bda2560e51665a2e761abef4147) is necessary in
      AWL.
2013-09-02 14:53:33 +12:00
Christoph Anton Mitterer
82757beba4 RFC compliant CGI AUTH_TYPE usage
* Handle the content of the CGI AUTH_TYPE variable case-insensitively as defined
  by RFC 3875 Section 4.1.1.
2013-09-02 14:53:12 +12: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
4ae44558c7 update addresses to the new canonical location
* Updated all addresses of the canonical git upstream repository and the issue
  tracker to the new ones.

Conflicts:
	po/de.po
	po/es_AR.po
	po/es_ES.po
	po/es_MX.po
	po/es_VE.po
	po/et.po
	po/fr.po
	po/hu.po
	po/it.po
	po/ja.po
	po/nb_NO.po
	po/nl.po
	po/pl.po
	po/pt_BR.po
	po/pt_PT.po
	po/ru.po
	po/sv.po
2013-09-02 14:40:33 +12:00
Christoph Anton Mitterer
1b73e00cbc document closed Debian bug
* Document that Debian bug #703387 was closed by commit
  56968d48651518dd386a53bcd28c408ffe313aeb which I forgot to do before.
2013-09-02 14:38:15 +12:00
Christoph Anton Mitterer
ea1ca0be0c escape version string to prevent XSS for sure
* HTML escape the remotely retrieved version string printed to the HTML in order
  to prevent and attacks (if this would have been possible at all in 12
  characters).

The version string read from the davical.org webserver might be changed by an
attacker in order to perform XSS.
Even though this is highly unlikley (there are only 12 characters used) it's
better to HTML escape any such string that is printed to HTML.

This was originally reported at:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703290
2013-09-02 14:38:05 +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
Matthias
92c15bed64 Fixed schedule reply handling for missing organizer 2013-09-02 14:27:40 +12:00
fbiete@gmail.com
b97ec56851 CardDAV support for search contains, starts-with, ends-with, equals 2013-09-02 14:27:20 +12:00
Andrew McMillan
1a86165883 Changes to default supported-component-set. 2013-09-02 14:22:12 +12:00
Andrew McMillan
bc1ef8b26c ETag/path changes due to regression.host changes. 2013-09-02 14:18:11 +12:00
Matthias
3837e9a559 Merge branch 'master' of github.com:DAViCal/davical 2013-07-18 11:56:16 +02:00
Matthias
835a3940c0 Merge branch 'master' of git://repo.or.cz/davical
Conflicts:
	inc/caldav-PUT-functions.php
	po/de.po
	po/es_AR.po
	po/es_ES.po
	po/es_MX.po
	po/es_VE.po
	po/et.po
	po/fr.po
	po/hu.po
	po/it.po
	po/ja.po
	po/nb_NO.po
	po/nl.po
	po/pl.po
	po/pt_BR.po
	po/pt_PT.po
	po/ru.po
	po/sv.po
2013-07-18 11:53:09 +02:00
Andrew McMillan
cc8e6a0131 Release 1.1.2 r1.1.2 2013-07-15 13:12:05 +12:00
Andrew McMillan
48d22782f7 Correct regression host name. 2013-07-15 13:11:08 +12:00
Andrew McMillan
8e899ff0e0 Sometimes principal_id can be false. 2013-05-31 09:34:24 +12:00
Andrew McMillan
63586d38d7 Autocreated docs for new classes. 2013-05-31 07:20:44 +12:00
Andrew McMillan
bc5edf09cf Handle the ?after=(duration|date) syntax when receiving a PUT of a calendar. 2013-05-29 12:50:50 +12:00
Andrew McMillan
56ee5a62fa Fix very buggy conversion of duration to seconds.
Obviously this was never tested before.
2013-05-29 12:50:02 +12:00
Matthias
a5100a1681 Fixed schedule reply handling for missing organizer 2013-05-28 12:51:32 +02:00
Matthias Althaus
0823f781f0 Merge pull request #5 from fmbiete/master
Add support in carddav searches: starts-with, ends-with, equals, contains
2013-05-28 03:48:55 -07:00
Matthias Althaus
ff03363831 Merge pull request #7 from althaus/master
Merging changes from origin
2013-05-28 03:33:14 -07:00
Matthias
72660d9851 Merge branch 'master' of git://repo.or.cz/davical 2013-05-28 12:26:40 +02:00
Andrew McMillan
04ad1ac742 Fix typo. 2013-05-28 12:54:44 +12:00
Andrew McMillan
9b7bc8d6e4 Changes in formatting from Transifex. 2013-05-23 13:38:12 +12:00
Andrew McMillan
5200c6d996 Allow adding an 'after=YYYY-MM-DD' or 'after=P72D' parameter
Only applies to PUT of a collection.  This will mean that only events
after that date (or absolute duration prior to today).  All repeating
events will still be included.
2013-05-23 13:37:00 +12:00
Andrew McMillan
115676613d Only certain specific namespaces actually have database columns. 2013-05-23 13:28:54 +12:00
Jason Alavaliant
126895e2a6 fix the append box when importing collections 2013-04-21 21:52:19 +12:00
Jason Alavaliant
036872ac85 fix for CLASS attribute problem (CONFIDENTIAL value) and invalid processing of ->hide_alarm configuration option: 2013-04-21 21:47:59 +12:00
Jason Alavaliant
3ab7787f7b add fix for the OSX Contacts.app: 2013-04-21 21:44:34 +12:00