Set path when creating a new report

master
Bob Mottram 2019-08-25 10:49:27 +01:00
parent 90c5237d1b
commit 02b4c00c2f
1 changed files with 2 additions and 1 deletions

View File

@ -2672,7 +2672,8 @@ class PubServer(BaseHTTPRequestHandler):
if '&submitReport=' in optionsConfirmParams: if '&submitReport=' in optionsConfirmParams:
if self.server.debug: if self.server.debug:
print('Reporting '+optionsActor) print('Reporting '+optionsActor)
msg=htmlNewPost(self.server.baseDir,self.path,None,[],postUrl).encode() reportPath=self.path.replace('/personoptions','')+'/newreport'
msg=htmlNewPost(self.server.baseDir,reportPath,None,[],postUrl).encode()
self._set_headers('text/html',len(msg),cookie) self._set_headers('text/html',len(msg),cookie)
self.wfile.write(msg) self.wfile.write(msg)
self.server.POSTbusy=False self.server.POSTbusy=False