misc: quote filename in link in ODS export (#87789)
gitea/wcs/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2024-03-05 15:24:28 +01:00
parent c03d216a70
commit 728afe97b6
1 changed files with 2 additions and 1 deletions

View File

@ -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