wcs: use deepcopy to prevent data leaking to other requests (#10709)
This commit is contained in:
parent
2a989d995a
commit
6e40bbdf0d
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue