scanner: quote path when deleting issues (#446)

This commit is contained in:
Antoine 2024-04-28 18:16:35 +02:00 committed by GitHub
parent 8b1524c155
commit f431e7930d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@ class KyooClient:
async def delete_issue(self, path: str): async def delete_issue(self, path: str):
async with self.client.delete( async with self.client.delete(
f'{self._url}/issues?filter=domain eq scanner and cause eq "{path}"', f'{self._url}/issues?filter=domain eq scanner and cause eq "{quote(path)}"',
headers={"X-API-Key": self._api_key}, headers={"X-API-Key": self._api_key},
) as r: ) as r:
if not r.ok: if not r.ok: