From 8a817cf402d65b857a62804602d3f053a6934c4a Mon Sep 17 00:00:00 2001 From: Unrud Date: Tue, 4 Sep 2018 03:33:36 +0200 Subject: [PATCH] Copy configuration before modifying --- radicale/server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/radicale/server.py b/radicale/server.py index a325384..3b87988 100644 --- a/radicale/server.py +++ b/radicale/server.py @@ -32,6 +32,7 @@ import socketserver import ssl import sys import wsgiref.simple_server +from configparser import ConfigParser from urllib.parse import unquote from radicale import Application @@ -199,6 +200,10 @@ class RequestHandler(wsgiref.simple_server.WSGIRequestHandler): def serve(configuration): """Serve radicale from configuration.""" logger.info("Starting Radicale") + # Copy configuration before modifying + config_copy = ConfigParser() + config_copy.read_dict(configuration) + configuration = config_copy configuration["internal"]["internal_server"] = "True" # Create collection servers