main
Bob Mottram 2021-07-27 18:06:44 +01:00
parent cc7d7123a7
commit 92962ad187
1 changed files with 7 additions and 0 deletions

View File

@ -4837,6 +4837,7 @@ class PubServer(BaseHTTPRequestHandler):
if not sharedItemsFederatedDomainsStr:
sharedItemsFederatedDomainsStr = ''
sharedItemsFormStr = ''
print('shareDomainList')
if fields.get('shareDomainList'):
sharedItemsList = \
sharedItemsFederatedDomainsStr.split(',')
@ -4844,10 +4845,16 @@ class PubServer(BaseHTTPRequestHandler):
sharedItemsFormStr += \
sharedFederatedDomain.strip() + '\n'
print('shareDomainList1: ' +
fields['shareDomainList'])
print('shareDomainList2: ' +
sharedItemsFormStr)
if fields['shareDomainList'] != \
sharedItemsFormStr:
sharedItemsFormStr2 = \
sharedItemsFormStr.replace('\n', ',')
print('shareDomainList2: ' +
sharedItemsFormStr2)
sharedItemsField = \
"sharedItemsFederatedDomains"
setConfigParam(baseDir, sharedItemsField,