main
Bob Mottram 2022-04-10 12:19:23 +01:00
parent 3ed59c88a6
commit 3521511d7f
1 changed files with 2 additions and 0 deletions

View File

@ -2187,6 +2187,7 @@ class PubServer(BaseHTTPRequestHandler):
moderation_text = None
moderation_button = None
# get the moderation text first
print('moderation_params: ' + str(moderation_params))
for moderation_str in moderation_params.split('&'):
if moderation_str.startswith('moderationAction'):
if '=' in moderation_str:
@ -2195,6 +2196,7 @@ class PubServer(BaseHTTPRequestHandler):
mod_text = moderation_text.replace('+', ' ')
moderation_text = \
urllib.parse.unquote_plus(mod_text.strip())
print('moderation_text: ' + str(moderation_text))
# which button was pressed?
for moderation_str in moderation_params.split('&'):
if moderation_str.startswith('submitInfo'):