mirror of https://gitlab.com/bashrc2/epicyon
Specification document is not html
parent
0331311dd0
commit
c5cec065b7
16
daemon.py
16
daemon.py
|
@ -4864,15 +4864,13 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
|
||||
if fields.get('editedSpecification'):
|
||||
specification_str = fields['editedSpecification']
|
||||
if not dangerous_markup(specification_str,
|
||||
allow_local_network_access):
|
||||
try:
|
||||
with open(specification_filename, 'w+',
|
||||
encoding='utf-8') as specificationfile:
|
||||
specificationfile.write(specification_str)
|
||||
except OSError:
|
||||
print('EX: unable to write specification ' +
|
||||
specification_filename)
|
||||
try:
|
||||
with open(specification_filename, 'w+',
|
||||
encoding='utf-8') as specificationfile:
|
||||
specificationfile.write(specification_str)
|
||||
except OSError:
|
||||
print('EX: unable to write specification ' +
|
||||
specification_filename)
|
||||
else:
|
||||
if os.path.isfile(specification_filename):
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue