Projects
Kolab:16:TestingLinked
iRony
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 39
View file
buildtarball.sh
Added
@@ -0,0 +1,22 @@ +#!/bin/bash + +set -e + +VERSION=0.4.8 +GIT_REF=master +NAME=iRony-$VERSION + +ROOT_DIR=$(pwd) + +rm -Rf /tmp/$NAME +mkdir /tmp/$NAME +cd /tmp/$NAME + +rm -f $NAME.tar.gz + -d "$NAME" && rm -rf "$NAME" +git clone --branch master ssh://git@git.kolab.org/diffusion/rI/iRony.git $NAME +pushd $NAME +git reset --hard $GIT_REF +git archive --prefix=$NAME/ -o "$ROOT_DIR/$NAME.tar.gz" HEAD + +cd "$PWD"
View file
iRony-0.4.8.tar.gz/lib/Kolab/CalDAV/CalendarBackend.php
Changed
@@ -347,7 +347,7 @@ if ($storage && ($event = $storage->get_object($uid))) { // deliver attachment content directly - if ($part && !empty($event'_attachments')) { + if (!empty($part) && !empty($event'_attachments')) { foreach ($event'_attachments' as $attachment) { if ($attachment'id' == $part) { header('Content-Type: ' . $attachment'mimetype'); @@ -1156,10 +1156,11 @@ if (is_array($event'attendees')) { foreach ($event'attendees' as $attendee) { if (in_array($attendee'email', $user_emails)) { - if ($attendee'status' == 'DECLINED') { + $status = !empty($attendee'status') ? $attendee'status' : null; + if ($status == 'DECLINED') { return false; } - else if ($inbox && $attendee'status' == 'NEEDS-ACTION') { + else if ($inbox && $status == 'NEEDS-ACTION') { return true; } }
View file
iRony-0.4.8.tar.gz/lib/Kolab/CardDAV/ContactsBackend.php
Changed
@@ -134,17 +134,16 @@ public function get_storage_folder($id) { // resolve alias name - if ($this->aliases$id) { + if (!empty($this->aliases$id)) { $id = $this->aliases$id; } - if ($this->folders$id) { + if (!empty($this->folders$id)) { DAVBackend::check_storage_folder($this->folders$id); return $this->folders$id; } - else { - return DAVBackend::get_storage_folder($id, 'contact'); - } + + return DAVBackend::get_storage_folder($id, 'contact'); } /** @@ -210,7 +209,7 @@ } // resolve aliases (addressbook by folder name) - if ($this->aliases$addressBookUri) { + if (!empty($this->aliases$addressBookUri)) { $id = $this->aliases$addressBookUri; }
View file
iRony-0.4.8.tar.gz/lib/Kolab/DAV/Auth/HTTPBasic.php
Changed
@@ -28,6 +28,8 @@ use \rcube_user; use \rcube_utils; use Sabre\DAV; +use Sabre\HTTP\RequestInterface; +use Sabre\HTTP\ResponseInterface; /** * @@ -128,6 +130,28 @@ } /** + * When this method is called, the backend must check if authentication was + * successful. + * + * The returned value must be one of the following + * + * true, "principals/username" + * false, "reason for failure" + * + * @return array + */ + public function check(RequestInterface $request, ResponseInterface $response) + { + $result = parent::check($request, $response); + + if ($result0) { + $result1 = $this->principalPrefix . $this->getCurrentUser(); + } + + return $result; + } + + /** * Storage host selection */ protected function _select_host($username)
View file
iRony-0.4.8.tar.gz/lib/Kolab/DAV/Node.php
Changed
@@ -91,7 +91,7 @@ */ public function getLastModified() { - return $this->data'modified' ? $this->data'modified' : null; + return !empty($this->data'modified') ? $this->data'modified' : null; } /**
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.