wcs: use deepcopy to prevent data leaking to other requests (#10709)

This commit is contained in:
Frédéric Péters 2016-04-19 13:58:16 +02:00
parent 2a989d995a
commit 6e40bbdf0d
1 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import copy
import logging
from django import template
@ -142,7 +143,7 @@ class WcsBlurpMixin(object):
else:
wcs_sites = get_wcs_services()
wcs_sites = wcs_sites.copy()
wcs_sites = copy.deepcopy(wcs_sites)
returns = set([])
for wcs_slug, wcs_site in wcs_sites.items():
url = wcs_site.get('url')