From 19dc514fe68ceec31bedda93c83751ddbd0d67e0 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 27 Mar 2025 10:13:50 +0100 Subject: ♻️ use specific library to sanitize files path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/libreoffice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ishtar_common/libreoffice.py') diff --git a/ishtar_common/libreoffice.py b/ishtar_common/libreoffice.py index 573d99361..7ef33efba 100644 --- a/ishtar_common/libreoffice.py +++ b/ishtar_common/libreoffice.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- +from pathvalidate import sanitize_filepath import time import uno @@ -13,7 +14,7 @@ import subprocess # nosec #from com.sun.star.table import CellRangeAddress, CellAddress -from ishtar_common.utils import num2col, sanitize_filepath +from ishtar_common.utils import num2col from django.conf import settings -- cgit v1.2.3