mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-17 19:54:48 -05:00
Merge branch 'advisory-fix-1' of github.com:onionshare/onionshare-ghsa-24m9-8mf9-pqrj into release-2.6.2
This commit is contained in:
commit
00b3109590
@ -23,6 +23,7 @@ import subprocess
|
|||||||
import os
|
import os
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from PySide6 import QtCore, QtWidgets, QtGui
|
from PySide6 import QtCore, QtWidgets, QtGui
|
||||||
|
from urllib.parse import unquote
|
||||||
|
|
||||||
from ... import strings
|
from ... import strings
|
||||||
from ...widgets import Alert
|
from ...widgets import Alert
|
||||||
@ -464,7 +465,9 @@ class IndividualFileHistoryItem(HistoryItem):
|
|||||||
self.common = common
|
self.common = common
|
||||||
|
|
||||||
self.id = id
|
self.id = id
|
||||||
self.path = path
|
# Decode and sanitize the path to remove newlines
|
||||||
|
decoded_path = unquote(path)
|
||||||
|
self.path = decoded_path.replace("\r", "").replace("\n", "")
|
||||||
self.total_bytes = 0
|
self.total_bytes = 0
|
||||||
self.downloaded_bytes = 0
|
self.downloaded_bytes = 0
|
||||||
self.started = time.time()
|
self.started = time.time()
|
||||||
|
Loading…
Reference in New Issue
Block a user