Skip to content

Commit 8ff60bd

Browse files
authored
Fixes: GeoNode#6509 specialchars in sld for zip files (GeoNode#6515)
1 parent 9f91331 commit 8ff60bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geonode/upload/upload.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ def _store_file(saved_layer,
903903
zf.extract(sld_file[0], os.path.dirname(archive))
904904
# Assign the absolute path to this file
905905
sld_file[0] = os.path.dirname(archive) + '/' + sld_file[0]
906-
sld = open(sld_file[0]).read()
906+
sld = open(sld_file[0], "rb").read()
907907
set_layer_style(
908908
saved_layer,
909909
saved_layer.alternate,

0 commit comments

Comments
 (0)