Bug: adding new calendars fails

1 view
Skip to first unread message

wil...@knowmad.com

unread,
Mar 7, 2007, 1:09:46 AM3/7/07
to planscalendar
Hi Lloyd,

I'm using Plans v7.9.2 and have anonymous_calendar_requests enabled.
I'm not able to add new calendars due to some code at line 2458 in
plans.cgi. This is doing a comparison with a timestamp in the form. It
appears that line 2066 should be setting this to a valid timestamp.
However, it is set to an empty string which makes the comparison at
line 2458 always fail. I think that the following line should replace
2066:

<input id="as" name="as" type="hidden" value="$rightnow"/>

This is working for my installation.


Thanks,
William

daltonlp

unread,
Mar 7, 2007, 4:16:55 PM3/7/07
to planscalendar
Your analysis is dead-on :)

But there's actually a piece of javascript (line 388 of plans.js) that
sets the value of the hidden form field to the contents of the 'rt'
div. This is just done to create a little extra work for spammers.

What's the URL for your installation? I'd like to take a look to see
why this might not be working.

- Lloyd

Reply all
Reply to author
Forward
0 new messages