misc: quote filename in link in ODS export (#87789)
gitea/wcs/pipeline/head This commit looks good
Details
gitea/wcs/pipeline/head This commit looks good
Details
This commit is contained in:
parent
c03d216a70
commit
728afe97b6
|
@ -15,6 +15,7 @@
|
|||
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import re
|
||||
import urllib.parse
|
||||
import xml.etree.ElementTree as ET
|
||||
import zipfile
|
||||
|
||||
|
@ -252,7 +253,7 @@ class WorkCell:
|
|||
url = '%sfiles/%s/%s' % (
|
||||
self.formdata.get_url(backoffice=True),
|
||||
self.data_field.id,
|
||||
self.native_value,
|
||||
urllib.parse.quote(self.native_value),
|
||||
)
|
||||
a = ET.SubElement(p, '{%s}a' % NS['text'])
|
||||
a.attrib['{%s}href' % NS['xlink']] = url
|
||||
|
|
Loading…
Reference in New Issue