main
Bob Mottram 2020-07-03 21:58:38 +01:00
parent dbd21902fa
commit 434e5f1e8c
1 changed files with 6 additions and 3 deletions

View File

@ -7661,9 +7661,12 @@ class PubServer(BaseHTTPRequestHandler):
self.server.POSTbusy = False self.server.POSTbusy = False
return return
if '&submitOnCalendar=' in optionsConfirmParams: if '&submitOnCalendar=' in optionsConfirmParams:
onCalendar = optionsConfirmParams.split('onCalendar=')[1] onCalendar = ''
if '&' in onCalendar: if 'onCalendar=' in optionsConfirmParams:
onCalendar = onCalendar.split('&')[0] onCalendar = optionsConfirmParams.split('onCalendar=')[1]
if '&' in onCalendar:
onCalendar = onCalendar.split('&')[0]
print('optionsConfirmParams: ' + optionsConfirmParams)
print('onCalendar: ' + onCalendar) print('onCalendar: ' + onCalendar)
if onCalendar == 'on': if onCalendar == 'on':
addPersonToCalendar(self.server.baseDir, addPersonToCalendar(self.server.baseDir,