6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/4/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#1599] Free/Busy URL - fb.php broken
*
Your Email Address
*
Spam protection
Enter the letters below:
. ..__ .__.. ..___. |_/ [ __| ||\ | _/ | \[_./|__|| \|./__.
Comment
> As per many mailing list posts, among them one from me on March 21st > 2005, use of the freebusyurl in kronolith 2.1-cvs (HEAD branch) is > broken when attempting to: > > > > 1. View Free/busy URL directly from a browser. > > 2. Check other users' availability when adding them to a new (or > existing) event. > > > > As far as I can tell, kronlolith/fb.php is broken as it tries to use > the PATH_INFO environment variable to determine the calendar name it > is using: > > > > // Determine the username to show free/busy time for. > > if (!empty($_SERVER['PATH_INFO'])) { > > $cal = basename($_SERVER['PATH_INFO']); > > } else { > > $cal = Util::getFormData('c'); > > if (is_array($cal)) { > > $cal = implode('|', $cal); > > } > > } > > > > In this logic, if $_SERVER['PATH_INFO'] is set (regardless of value) > then the query option "c=username" passed in the URI is ignored. > > In my case, this then produces a calendar name of "fb.php" which, > unless I have a *very* odd set of usernames :) is not going to be > valid. I can't see why this environment variable is used at all; > maybe someone could enlighten me on that one... > > > > In any case, I made a change to fb.php (patch attached) which ignores > it. The patch needs better error condition handling as it's possible > to pass an invalid username which will then return a bogus empty > response, but it's fixed it for me. > > > > Is this valid, or just rubbish?
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers